fix crash on doMonsterSay

This commit is contained in:
ErikasKontenis
2019-12-29 11:03:26 +02:00
parent cc98f76906
commit d9d6bc5819
3 changed files with 10 additions and 12 deletions

View File

@@ -3739,7 +3739,7 @@ void Game::addMonsterSayText(const Position& pos, const std::string& text)
for (Creature* spectator : list) {
if (Player* tmpPlayer = spectator->getPlayer()) {
tmpPlayer->sendCreatureSay(nullptr, TALKTYPE_MONSTER_SAY, text, &pos);
tmpPlayer->sendCreatureSay(tmpPlayer, TALKTYPE_MONSTER_SAY, text, &pos);
}
}
}