[Bug Fix] Fix possible crash with zone name methods. (#2055)

- ZoneLongName and ZoneName were returning nullptr in places that were then attempting to use that nullptr value, causing zone crashes.
This commit is contained in:
Kinglykrab
2022-03-13 15:59:57 -04:00
committed by GitHub
parent 8e62383997
commit b75741ff4e
2 changed files with 7 additions and 6 deletions
+3 -3
View File
@@ -3234,15 +3234,15 @@ int32 QuestManager::GetZoneID(const char *zone) {
std::string QuestManager::GetZoneLongName(std::string zone_short_name)
{
return ZoneLongName(ZoneID(zone_short_name));
return ZoneLongName(ZoneID(zone_short_name), true);
}
std::string QuestManager::GetZoneLongNameByID(uint32 zone_id) {
return ZoneLongName(zone_id);
return ZoneLongName(zone_id, true);
}
std::string QuestManager::GetZoneShortName(uint32 zone_id) {
return ZoneName(zone_id);
return ZoneName(zone_id, true);
}
bool QuestManager::EnableRecipe(uint32 recipe_id)