Skip to content

Commit

Permalink
Don't try to read packets when we haven't connected to a SMO server.
Browse files Browse the repository at this point in the history
  • Loading branch information
xwidghet committed Jun 23, 2017
1 parent 01b930f commit e97ab8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NetworkSyncManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ void NetworkSyncManager::Update(float fDeltaTime)
{
if (useSMserver)
ProcessInput();
else
return;

PacketFunctions BroadIn;
if ( BroadcastReception->ReadPack( (char*)&BroadIn.Data, 1020 ) )
Expand Down

0 comments on commit e97ab8b

Please sign in to comment.