Fixed crash in spawn star packet
This commit is contained in:
parent
08d75858c3
commit
f1bcc6da15
|
@ -85,7 +85,7 @@ void network_receive_spawn_star_nle(struct Packet* p) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// check for sync id
|
// check for sync id
|
||||||
if (object == NULL) {
|
if (object == NULL && syncId < MAX_SYNC_OBJECTS) {
|
||||||
object = gSyncObjects[syncId].o;
|
object = gSyncObjects[syncId].o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue