diff options
| author | Dusan Durech <dusan@debian.debian> | 2009-03-26 17:27:59 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.debian> | 2009-03-26 17:27:59 +0100 |
| commit | 534c42dabe703d2f09383dd2568f15ff21f9075e (patch) | |
| tree | 624ac5e7d51131f988b867fecaac7e330f57e614 /src/modules | |
| parent | e5e0724740215565404dba837f8c3072f9fe7413 (diff) | |
fix warnning in modAI.c
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/modAI.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/modAI.c b/src/modules/modAI.c index 67ee594..a6fa311 100644 --- a/src/modules/modAI.c +++ b/src/modules/modAI.c @@ -274,7 +274,7 @@ static void eventTuxAI(tux_t * tux) h)) { //printf("this->step = %d\n", this->step); - delList(listAlternative, index); + delList(listAlternative, my_index); addList(listDst, this); my_index--; //continue; @@ -283,7 +283,7 @@ static void eventTuxAI(tux_t * tux) if (export_fce->fce_isFreeSpace(arena, this->x, this->y, w, h) == 0) { //forkAlternative(listFork, this, w*2, h*2); - delListItem(listAlternative, index, destroyAlternative); + delListItem(listAlternative, my_index, destroyAlternative); my_index--; countDel++; |