[Fix] Weird exception bug on change level.

This commit is contained in:
Tamir Atias 2012-02-04 23:12:28 +02:00
parent 5e0130019d
commit 228371376d

View File

@ -177,7 +177,11 @@ void LevelGen::Render(void) {
void LevelGen::Unload(void) { void LevelGen::Unload(void) {
_tileTextures.Unload(); _tileTextures.Unload();
_entityTextures.Unload(); _entityTextures.Unload();
memset(_tile, sizeof(_tile), 0); for(int x = 0; x < TILE_ARRAY_SIZE; x++) {
for(int y = 0; y < TILE_ARRAY_SIZE; y++) {
_tile[x][y] = MapTile();
}
}
} }
void LevelGen::DoMagic(void) { void LevelGen::DoMagic(void) {