[Fix] Weird exception bug on change level.
This commit is contained in:
parent
5e0130019d
commit
228371376d
@ -177,7 +177,11 @@ void LevelGen::Render(void) {
|
||||
void LevelGen::Unload(void) {
|
||||
_tileTextures.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) {
|
||||
|
Loading…
Reference in New Issue
Block a user