From f1bcc6da15e5d99a1ce4177182b8ddd8a306fc8e Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 13 Feb 2022 16:24:11 -0800 Subject: [PATCH] Fixed crash in spawn star packet --- src/pc/network/packets/packet_spawn_star.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/network/packets/packet_spawn_star.c b/src/pc/network/packets/packet_spawn_star.c index f6c3eae6..8c6dc451 100644 --- a/src/pc/network/packets/packet_spawn_star.c +++ b/src/pc/network/packets/packet_spawn_star.c @@ -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; }