Merge pull request #553 from Azaezel/alpha40/nodelistnonull

sanity check nodelist presence
This commit is contained in:
Jeff Hutchinson 2021-08-29 17:49:22 -04:00 committed by GitHub
commit 0287f7717b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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