mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-09-03 21:39:07 +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);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// SFALL: Prevent a crash when the proto is missing.
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (sid != -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user