mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Fix build failing since 52758c1a0b
/TrinityCore/src/server/game/Maps/Map.cpp:2448:22: fatal error:
variable 'areaId' is used uninitialized whenever 'if' condition is false
[-Wsometimes-uninitialized]
if (GridMap* gmap = const_cast<Map*>(this)->GetGrid(x, y))
This commit is contained in:
@@ -2439,7 +2439,7 @@ uint32 Map::GetAreaId(float x, float y, float z, bool *isOutdoors) const
|
||||
atEntry = sAreaTableStore.LookupEntry(wmoEntry->AreaTableID);
|
||||
}
|
||||
|
||||
uint32 areaId;
|
||||
uint32 areaId = 0;
|
||||
|
||||
if (atEntry)
|
||||
areaId = atEntry->ID;
|
||||
|
||||
Reference in New Issue
Block a user