Fixed crash in spawn star packet

This commit is contained in:
MysterD 2022-02-13 16:24:11 -08:00
parent 08d75858c3
commit f1bcc6da15
1 changed files with 1 additions and 1 deletions

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;
}