diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-01-08 22:43:37 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-01-08 22:43:37 +0100 |
commit | 492397ea0f317f29070a4da0e34ed40261f93be6 (patch) | |
tree | a89a4ed2657c6a10f19f025fd6fdab1722e14b65 /crawl-ref/source/tilereg-cmd.cc | |
parent | 93036ae4a96967a77f185ea61a461539e7a47707 (diff) | |
download | crawl-ref-492397ea0f317f29070a4da0e34ed40261f93be6.tar.gz crawl-ref-492397ea0f317f29070a4da0e34ed40261f93be6.zip |
Simplify
Diffstat (limited to 'crawl-ref/source/tilereg-cmd.cc')
-rw-r--r-- | crawl-ref/source/tilereg-cmd.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg-cmd.cc b/crawl-ref/source/tilereg-cmd.cc index f2c0426bb1..41a1518ab6 100644 --- a/crawl-ref/source/tilereg-cmd.cc +++ b/crawl-ref/source/tilereg-cmd.cc @@ -180,8 +180,7 @@ void CommandRegion::update() if (mx * my == 0) return; - const int max_size = ARRAYSZ(_common_commands); - for (int idx = 0; idx < max_size; ++idx) + for (int idx = 0; idx < n_common_commands; ++idx) { const command_type cmd = _common_commands[idx]; |