Fix potential crash in opCreateObject
This commit is contained in:
parent
ac9293c3d5
commit
7b98bc76e2
|
@ -899,6 +899,9 @@ void opCreateObject(Program* program)
|
||||||
tileWindowRefreshRect(&rect, object->elevation);
|
tileWindowRefreshRect(&rect, object->elevation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// SFALL: Prevent a crash when the proto is missing.
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sid != -1) {
|
if (sid != -1) {
|
||||||
|
|
Loading…
Reference in New Issue