forked from github/server
bugfix letzter commit.
This commit is contained in:
parent
c5846b0990
commit
85e2dd76d9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue