Fixed crash in spawn star packet

This commit is contained in:
MysterD 2022-02-13 16:24:11 -08:00
parent 2b9c5b5a90
commit 6d7d79a4aa

View file

@ -85,7 +85,7 @@ void network_receive_spawn_star_nle(struct Packet* p) {
}
// check for sync id
if (object == NULL) {
if (object == NULL && syncId < MAX_SYNC_OBJECTS) {
object = gSyncObjects[syncId].o;
}