Fix tnt/prop crash, it was using up all the memory on the computer

This commit is contained in:
Jacob1 2011-12-04 23:56:14 +08:00 committed by Simon Robertshaw
parent 27641f54dc
commit 939a599b80

View File

@ -2730,6 +2730,7 @@ int flood_prop(int x, int y, size_t propoffset, void * propvalue, int proptype)
memset(bitmap, 0, XRES*YRES); memset(bitmap, 0, XRES*YRES);
r = pmap[y][x]; r = pmap[y][x];
flood_prop_2(x, y, propoffset, propvalue, proptype, r&0xFF, bitmap); flood_prop_2(x, y, propoffset, propvalue, proptype, r&0xFF, bitmap);
free(bitmap);
} }
int flood_parts(int x, int y, int fullc, int cm, int bm, int flags) int flood_parts(int x, int y, int fullc, int cm, int bm, int flags)