summaryrefslogtreecommitdiff
path: root/src/control/SceneEdit.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-10 17:09:57 +0200
committeraap <aap@papnet.eu>2020-05-10 17:09:57 +0200
commit5b605c127144ab805581f62015ef3742c1d4a64e (patch)
treef86a422d080f58afcaa5eac7cf2b378bdf306142 /src/control/SceneEdit.cpp
parentd9a3533438ea0bf3ace712facfd01c9462390130 (diff)
some fixes and cosmetic changes
Diffstat (limited to 'src/control/SceneEdit.cpp')
-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 c8b4242e..632ec94a 100644
--- a/src/control/SceneEdit.cpp
+++ b/src/control/SceneEdit.cpp
@@ -76,7 +76,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;
}