aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-20 10:19:10 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-20 10:19:10 -0500
commit2e5ad7027daa0d10453640a617b53fdde4542929 (patch)
tree2f27419ee29c67a17ad47bb5d9318cdb7a707413
parent92b5be79743457d6746e6d00ad4edbfdd955d828 (diff)
downloadsok-2e5ad7027daa0d10453640a617b53fdde4542929.tar.bz2
sok-2e5ad7027daa0d10453640a617b53fdde4542929.zip
minor assets cleanup
-rw-r--r--src/sdl/assets.c5
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;
}