mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[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:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user