Skip to content

Commit

Permalink
Null check when receiving syncobject packet
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Sep 30, 2024
1 parent 8163e35 commit 8a45ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fika.Core/Networking/FikaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ private void OnSyncObjectPacketReceived(SyncObjectPacket packet)
{
CoopClientGameWorld gameWorld = (CoopClientGameWorld)Singleton<GameWorld>.Instance;
List<AirplaneDataPacketStruct> structs = [packet.Data];
gameWorld.ClientSynchronizableObjectLogicProcessor.ProcessSyncObjectPackets(structs);
gameWorld.ClientSynchronizableObjectLogicProcessor?.ProcessSyncObjectPackets(structs);
}

private void OnReconnectPacketReceived(ReconnectPacket packet)
Expand Down

0 comments on commit 8a45ca9

Please sign in to comment.