summaryrefslogtreecommitdiff
path: root/src/deh_cheat.c
diff options
context:
space:
mode:
authorSimon Howard2007-06-21 11:33:46 +0000
committerSimon Howard2007-06-21 11:33:46 +0000
commited6191430b27a5447ef2675f2cfe19d8f0b88333 (patch)
treee7cd1d4d3d54a76717c6bc7f27050d865b4973bf /src/deh_cheat.c
parentee2a6fda9fd817c191d74d0f1a00a4c05b4ed433 (diff)
downloadchocolate-doom-ed6191430b27a5447ef2675f2cfe19d8f0b88333.tar.gz
chocolate-doom-ed6191430b27a5447ef2675f2cfe19d8f0b88333.tar.bz2
chocolate-doom-ed6191430b27a5447ef2675f2cfe19d8f0b88333.zip
Add arrlen() macro as a clearer way of doing sizeof(array) /
sizeof(*array) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 922
Diffstat (limited to 'src/deh_cheat.c')
-rw-r--r--src/deh_cheat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deh_cheat.c b/src/deh_cheat.c
index 6536ca3d..28f32572 100644
--- a/src/deh_cheat.c
+++ b/src/deh_cheat.c
@@ -64,7 +64,7 @@ static deh_cheat_t *FindCheatByName(char *name)
{
size_t i;
- for (i=0; i<sizeof(allcheats) / sizeof(*allcheats); ++i)
+ for (i=0; i<arrlen(allcheats); ++i)
{
if (!strcasecmp(allcheats[i].name, name))
return &allcheats[i];