Fix tutorial world crash

This commit is contained in:
Slenderman 2026-03-03 16:31:03 -05:00
parent 74a303edfe
commit dd0c365921

View file

@ -449,7 +449,7 @@ void ClientConnection::handleAddEntity(shared_ptr<AddEntityPacket> packet)
}
}
if (owner->instanceof(eTYPE_PLAYER))
if (owner != NULL && owner->instanceof(eTYPE_PLAYER))
{
shared_ptr<Player> player = dynamic_pointer_cast<Player>(owner);
shared_ptr<FishingHook> hook = shared_ptr<FishingHook>( new FishingHook(level, x, y, z, player) );