medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 81ae2096832cc28783764e26f6b95a052d43b067
parent 9178ce1d00f9506a83027f5517bb19f995321400
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Oct 12 23:32:52 +0300

Fix crash in terrain_unload_tile

Diffstat:
terrain_manager.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -208,7 +208,7 @@ static void terrain_unload_tile( TerrainManager * tm, s32 tx, s32 ty ) { printf( "destroyed %d %d\n", tx, ty ); heightmap_destroy( &tm->decompressed_tiles[ tx ][ ty ].heightmap ); - free( &tm->decompressed_tiles[ tx ][ ty ].normalmap ); + free( tm->decompressed_tiles[ tx ][ ty ].normalmap ); gpubtt_destroy( &tm->gpubtts[ tx ][ ty ] ); store_release( &tm->tile_states[ tx ][ ty ], TILE_EMPTY );