summaryrefslogtreecommitdiffstats
path: root/src/control/Phones.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-16 23:53:25 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-16 23:53:25 +0200
commit5b1ffb09124c7427b7efb421091179ddecc725c4 (patch)
treeac2d216a9aa6b79359371fe73b400c44fc5bca6e /src/control/Phones.cpp
parentMerge pull request #244 from Nick007J/master (diff)
downloadre3-5b1ffb09124c7427b7efb421091179ddecc725c4.tar
re3-5b1ffb09124c7427b7efb421091179ddecc725c4.tar.gz
re3-5b1ffb09124c7427b7efb421091179ddecc725c4.tar.bz2
re3-5b1ffb09124c7427b7efb421091179ddecc725c4.tar.lz
re3-5b1ffb09124c7427b7efb421091179ddecc725c4.tar.xz
re3-5b1ffb09124c7427b7efb421091179ddecc725c4.tar.zst
re3-5b1ffb09124c7427b7efb421091179ddecc725c4.zip
Diffstat (limited to '')
-rw-r--r--src/control/Phones.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Phones.cpp b/src/control/Phones.cpp
index f8005899..074718db 100644
--- a/src/control/Phones.cpp
+++ b/src/control/Phones.cpp
@@ -151,8 +151,8 @@ CPhoneInfo::Initialise(void)
pickedUpPhone = nil;
m_nMax = 0;
m_nNum = 0;
- for (int v5 = pool->GetSize() - 1; v5 >= 0; v5--) {
- CBuilding *building = pool->GetSlot(v5);
+ for (int i = pool->GetSize() - 1; i >= 0; i--) {
+ CBuilding *building = pool->GetSlot(i);
if (building) {
if (building->m_modelIndex == MI_PHONEBOOTH1) {
CPhone *maxPhone = &m_aPhones[m_nMax];