mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-09-15 15:03:11 +00:00
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
Block a user