summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorbigbossbro08 <bigbossbro08@gmail.com>2020-05-10 18:05:45 +0200
committerbigbossbro08 <bigbossbro08@gmail.com>2020-05-10 18:05:45 +0200
commitbd302ecca157982a2bfe83d6cfb3167418fd8bb3 (patch)
treeb9d849f3fc61246f0038e5bec53ef8f61b040b83 /src/control
parentfixed few more typos (diff)
parentsome fixes and cosmetic changes (diff)
downloadre3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar
re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar.gz
re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar.bz2
re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar.lz
re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar.xz
re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar.zst
re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/SceneEdit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/SceneEdit.cpp b/src/control/SceneEdit.cpp
index 54f4dd3a..6aa64a3c 100644
--- a/src/control/SceneEdit.cpp
+++ b/src/control/SceneEdit.cpp
@@ -78,7 +78,7 @@ static int32 NextValidModelId(int32 mi, int32 step)
int32 i = mi;
while (result == -1) {
i += step;
- if (i < 0 || i > 5500) {
+ if (i < 0 || i > MODELINFOSIZE) {
step = -step;
continue;
}