bugfix letzter commit.

This commit is contained in:
Enno Rehling 2005-06-11 23:10:06 +00:00
parent c5846b0990
commit 85e2dd76d9
2 changed files with 5 additions and 2 deletions

View File

@ -1021,14 +1021,15 @@ fix_attribflags(void)
for (u=r->units;u!=NULL;u=u->next) {
const attrib *a = r->attribs;
while (a) {
if (a->type!=&at_guard) {
if (a->type==&at_guard) {
fset(u, UFL_GUARD);
break;
}
a = a->next;
return a;
}
}
}
return 0;
}
static int

View File

@ -87,6 +87,7 @@
#include <util/log.h>
#include <util/rand.h>
#include <util/sql.h>
#include <util/dl/malloc.h>
/* lua includes */
#include "lua/bindings.h"
@ -700,6 +701,7 @@ main(int argc, char *argv[])
}
#endif
}
malloc_stats();
#ifdef CLEANUP_CODE
game_done();
#endif