diff options
author | Simon Howard | 2007-06-21 11:33:46 +0000 |
---|---|---|
committer | Simon Howard | 2007-06-21 11:33:46 +0000 |
commit | ed6191430b27a5447ef2675f2cfe19d8f0b88333 (patch) | |
tree | e7cd1d4d3d54a76717c6bc7f27050d865b4973bf /src/deh_cheat.c | |
parent | ee2a6fda9fd817c191d74d0f1a00a4c05b4ed433 (diff) | |
download | chocolate-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.c | 2 |
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]; |