Core/Datastores: use generated member names for MapEntry fields

* load all dbc fields of MapEntry
This commit is contained in:
Ovahlord committed 2019-02-24 00:14:44 +01:00
1 parent 36bd27e347
commit 1e4cc2293a
25 files changed
+120 -111

No files matched your search

+2 -2
View File
@@ -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;