diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sdl/assets.c | 5 |
1 files changed, 1 insertions, 4 deletions
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; } |