some fixes and cosmetic changes

This commit is contained in:
aap
2020-05-10 17:09:57 +02:00
parent d9a3533438
commit 5b605c1271
8 changed files with 34 additions and 23 deletions

View File

@ -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;
}