From 2e5ad7027daa0d10453640a617b53fdde4542929 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 20 Jan 2019 10:19:10 -0500 Subject: minor assets cleanup --- src/sdl/assets.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/sdl/assets.c') diff --git a/src/sdl/assets.c b/src/sdl/assets.c index 1a93318..8fa6332 100644 --- a/src/sdl/assets.c +++ b/src/sdl/assets.c @@ -20213,14 +20213,11 @@ ASSETS[] = {{ }, { .buf = undo_1_wav, .len = sizeof(undo_1_wav), -}, { - .buf = NULL, // SOUND_LAST - .len = 0, }}; const asset_t * asset_get( const asset_id_t id ) { - return (id < ASSET_LAST) ? ASSETS + id : NULL; + return (id < (sizeof(ASSETS) / sizeof(asset_t))) ? ASSETS + id : NULL; } -- cgit v1.2.3