Core/Datastores: use generated member names for MapEntry fields
* load all dbc fields of MapEntry
This commit is contained in:
1 parent
36bd27e347
commit
1e4cc2293a
25 files changed
+120
-111
No files matched your search
@@ -19345,7 +19345,7 @@ void Player::_LoadBoundInstances(PreparedQueryResult result)
|
||||
bool deleteInstance = false;
|
||||
|
||||
MapEntry const* mapEntry = sMapStore.LookupEntry(mapId);
|
||||
std::string mapname = mapEntry ? mapEntry->name : "Unknown";
|
||||
std::string mapname = mapEntry ? mapEntry->Name : "Unknown";
|
||||
|
||||
if (!mapEntry || !mapEntry->IsDungeon())
|
||||
{
|
||||
@@ -21148,7 +21148,7 @@ void Player::ResetInstances(uint8 method, bool isRaid)
|
||||
if (method == INSTANCE_RESET_ALL)
|
||||
{
|
||||
// the "reset all instances" method can only reset normal maps
|
||||
if (entry->map_type == MAP_RAID || diff == DUNGEON_DIFFICULTY_HEROIC)
|
||||
if (entry->MapType == MAP_RAID || diff == DUNGEON_DIFFICULTY_HEROIC)
|
||||
{
|
||||
++itr;
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user