Browse Source

sanity check nodelist presence

AzaezelX 4 years ago
parent
commit
ad05a78946
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Engine/source/environment/nodeListManager.cpp

+ 2 - 1
Engine/source/environment/nodeListManager.cpp

@@ -79,7 +79,8 @@ void NodeListEvent::unpack(NetConnection* conn, BitStream* stream)
    stream->read(&mTotalNodes);
    stream->read(&mTotalNodes);
    stream->read(&mLocalListStart);
    stream->read(&mLocalListStart);
 
 
-   mNodeList->mId = mId;
+   if (mNodeList)
+      mNodeList->mId = mId;
 
 
    // NOTE: Child class needs to populate the local node list
    // NOTE: Child class needs to populate the local node list
 }
 }