mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
* Fixed issue in OutdoorPvPMgr::LoadTemplates. (Note to self: don't take the address of a temporary, damnit)
--HG-- branch : trunk
This commit is contained in:
@@ -108,11 +108,11 @@ void OutdoorPvPMgr::LoadTemplates()
|
||||
continue;
|
||||
}
|
||||
|
||||
OutdoorPvPData data;
|
||||
OutdoorPvPData* data = new OutdoorPvPData();
|
||||
OutdoorPvPTypes realTypeId = OutdoorPvPTypes(typeId);
|
||||
data.TypeId = realTypeId;
|
||||
data.ScriptId = sObjectMgr.GetScriptId(fields[1].GetString());
|
||||
m_OutdoorPvPDatas[realTypeId] = &data;
|
||||
data->TypeId = realTypeId;
|
||||
data->ScriptId = sObjectMgr.GetScriptId(fields[1].GetString());
|
||||
m_OutdoorPvPDatas[realTypeId] = data;
|
||||
|
||||
++count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user