medfall

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

commit 35e286f909100219a8400f6b79b41cf0fdb02bbe
parent 42fba3605552a459ec81d90785f1315cbfc747df
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Aug 31 20:55:22 -0700

Check LZ4_decompress_safe succeeded

Diffstat:
terrain_manager.cc | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -82,6 +82,7 @@ static void terrain_load_tile( width = height = TILE_SIZE + 1; u8 * pixels = ( u8 * ) malloc( out_size ); int ok = LZ4_decompress_safe( ( const char * ) ct.data, ( char * ) pixels, ct.len, out_size ); + assert( ok > 0 ); heightmap_init( hm, tm->arena, pixels, width, height, tx * TILE_SIZE, ty * TILE_SIZE,