aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorJoost Peters2004-09-13 19:16:11 +0000
committerJoost Peters2004-09-13 19:16:11 +0000
commit7dc4f06af8f0b5b5e5896790ab25e10d4fa6a292 (patch)
treef6b32bdd26f98ad9ab7f2c01f6e398f2dfb80604 /sky
parent00dd95ac0a041ab1c2b4655c9b25b0233f148f68 (diff)
downloadscummvm-rg350-7dc4f06af8f0b5b5e5896790ab25e10d4fa6a292.tar.gz
scummvm-rg350-7dc4f06af8f0b5b5e5896790ab25e10d4fa6a292.tar.bz2
scummvm-rg350-7dc4f06af8f0b5b5e5896790ab25e10d4fa6a292.zip
Use ARRAYSIZE macro
svn-id: r15100
Diffstat (limited to 'sky')
-rw-r--r--sky/debug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sky/debug.cpp b/sky/debug.cpp
index 6354db77f3..14c0fc086d 100644
--- a/sky/debug.cpp
+++ b/sky/debug.cpp
@@ -1342,7 +1342,7 @@ bool Debugger::Cmd_ShowCompact(int argc, const char **argv) {
}
int i;
- int numCompacts = sizeof(section_0_compacts) / sizeof(section_0_compacts[0]);
+ int numCompacts = ARRAYSIZE(section_0_compacts);
if (0 == strcmp(argv[1], "list")) {
for (i = 0; i < numCompacts; ++i) {
@@ -1382,7 +1382,7 @@ bool Debugger::Cmd_LogicCommand(int argc, const char **argv) {
return true;
}
- int numMCodes = sizeof(mcodes) / sizeof(mcodes[0]);
+ int numMCodes = ARRAYSIZE(mcodes);
if (0 == strcmp(argv[1], "list")) {
for (int i = 0; i < numMCodes; ++i) {
@@ -1427,7 +1427,7 @@ bool Debugger::Cmd_ScriptVar(int argc, const char **argv) {
return true;
}
- int numScriptVars = sizeof(scriptVars) / sizeof(scriptVars[0]);
+ int numScriptVars = ARRAYSIZE(scriptVars);
if (0 == strcmp(argv[1], "list")) {
for (int i = 0; i < numScriptVars; ++i) {