summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-cmd.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-01-08 22:43:37 +0100
committerRaphael Langella <raphael.langella@gmail.com>2011-01-08 22:43:37 +0100
commit492397ea0f317f29070a4da0e34ed40261f93be6 (patch)
treea89a4ed2657c6a10f19f025fd6fdab1722e14b65 /crawl-ref/source/tilereg-cmd.h
parent93036ae4a96967a77f185ea61a461539e7a47707 (diff)
downloadcrawl-ref-492397ea0f317f29070a4da0e34ed40261f93be6.tar.gz
crawl-ref-492397ea0f317f29070a4da0e34ed40261f93be6.zip
Simplify
Diffstat (limited to 'crawl-ref/source/tilereg-cmd.h')
-rw-r--r--crawl-ref/source/tilereg-cmd.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg-cmd.h b/crawl-ref/source/tilereg-cmd.h
index 901caaed88..f2d4aa48fd 100644
--- a/crawl-ref/source/tilereg-cmd.h
+++ b/crawl-ref/source/tilereg-cmd.h
@@ -28,8 +28,7 @@ static const command_type _common_commands[] =
CMD_CHARACTER_DUMP
};
-static const int n_common_commands =
- sizeof(_common_commands) / sizeof(*_common_commands);
+static const int n_common_commands = ARRAYSZ(_common_commands);
class CommandRegion : public GridRegion
{