mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Fixed crash in get_object_list_from_behavior()
This commit is contained in:
parent
5113e9e99c
commit
5cf9a835af
1 changed files with 1 additions and 1 deletions
|
@ -984,7 +984,7 @@ u32 get_object_list_from_behavior(const BehaviorScript *behavior) {
|
|||
|
||||
// If the first behavior command is "begin", then get the object list header
|
||||
// from there
|
||||
if ((behavior[0] >> 24) == 0) {
|
||||
if (behavior && (behavior[0] >> 24) == 0) {
|
||||
objectList = (behavior[0] >> 16) & 0xFFFF;
|
||||
} else {
|
||||
objectList = OBJ_LIST_DEFAULT;
|
||||
|
|
Loading…
Reference in a new issue