avoid a crash if entityTree is null

This commit is contained in:
Seth Alves 2018-02-26 13:53:14 -08:00
parent f08864f17b
commit eed388e7c9

View file

@ -91,7 +91,7 @@ void EntityEditPacketSender::queueEditEntityMessage(PacketType type,
return;
}
if (entityTree->isServerlessMode()) {
if (entityTree && entityTree->isServerlessMode()) {
// if we are in a serverless domain, don't send edit packets
return;
}