Memory corruption found - sending packets to BoTs using Client class

This commit is contained in:
neckkola
2022-01-30 22:40:11 -04:00
parent ed552af6f1
commit fbaeb00f39
5 changed files with 9 additions and 9 deletions
+1 -2
View File
@@ -3033,8 +3033,7 @@ void Mob::QuestJournalledSay(Client *QuestInitiator, const char *str, Journal::O
const char *Mob::GetCleanName()
{
if (clean_name != NULL && !strlen(clean_name)) { //extra check added for crash condition. Mitch
if (this)
CleanMobName(GetName(), clean_name);
CleanMobName(GetName(), clean_name);
}
return clean_name;