diff options
author | aap <aap@papnet.eu> | 2020-05-09 17:05:26 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-09 17:05:26 +0200 |
commit | 97d5698e0c669fd98911991b2ce3042fce376f06 (patch) | |
tree | 925f3f75e2b7d643fb7484018d484edc6a1e73d5 /src/control/SceneEdit.cpp | |
parent | removed cutscene heads (diff) | |
download | re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar.gz re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar.bz2 re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar.lz re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar.xz re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar.zst re3-97d5698e0c669fd98911991b2ce3042fce376f06.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/SceneEdit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/SceneEdit.cpp b/src/control/SceneEdit.cpp index c8b4242e..bdb93f33 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; } @@ -86,7 +86,7 @@ static int32 NextValidModelId(int32 mi, int32 step) continue; if (pInfo->GetModelType() == MITYPE_PED #ifdef FIX_BUGS - && !(i >= MI_SPECIAL01 && i <= MI_SPECIAL04) + && !(i >= MI_SPECIAL01 && i <= MI_SPECIAL21) #endif || pInfo->GetModelType() == MITYPE_VEHICLE && #ifdef FIX_BUGS |