Fix a couple of those pesky scoping in for loops problems.

This commit is contained in:
karajorma committed 2008-05-26 16:39:59 +00:00
1 parent 2c55d4caeb
commit eec030d092
2 files changed
+5 -2

No files matched your search

+3 -1
View File
@@ -1829,6 +1829,8 @@ ADE_INDEXER(l_ShipOrders, "number Index/string TextureFilename", "Array of ship
object_h *objh = NULL;
char *s = NULL;
order_h *oh = NULL;
int i;
if (!ade_get_args(L, "os|o", l_ShipOrders.GetPtr(&objh), &s, l_Order.GetPtr(&oh)))
return ade_set_error(L, "o", l_Order.Set(order_h()));
@@ -1845,7 +1847,7 @@ ADE_INDEXER(l_ShipOrders, "number Index/string TextureFilename", "Array of ship
return ade_set_error(L, "o", l_Order.Set(order_h()));
int num = 0;
for(int i = 0; i < MAX_AI_GOALS; i++)
for(i = 0; i < MAX_AI_GOALS; i++)
{
if(aip->goals[i].ai_mode != AI_GOAL_NONE)
{