mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Merge branch 'master' into 303
Conflicts: src/game/ItemPrototype.h src/game/ObjectMgr.cpp src/shared/Database/SQLStorage.cpp
This commit is contained in:
commit
e738198eb4
33 changed files with 721 additions and 335 deletions
|
|
@ -1626,7 +1626,7 @@ void InstanceMap::CreateInstanceData(bool load)
|
|||
InstanceTemplate const* mInstance = objmgr.GetInstanceTemplate(GetId());
|
||||
if (mInstance)
|
||||
{
|
||||
i_script = mInstance->script;
|
||||
i_script_id = mInstance->script_id;
|
||||
i_data = Script->CreateInstanceData(this);
|
||||
}
|
||||
|
||||
|
|
@ -1643,7 +1643,7 @@ void InstanceMap::CreateInstanceData(bool load)
|
|||
const char* data = fields[0].GetString();
|
||||
if(data)
|
||||
{
|
||||
sLog.outDebug("Loading instance data for `%s` with id %u", i_script.c_str(), i_InstanceId);
|
||||
sLog.outDebug("Loading instance data for `%s` with id %u", objmgr.GetScriptName(i_script_id), i_InstanceId);
|
||||
i_data->Load(data);
|
||||
}
|
||||
delete result;
|
||||
|
|
@ -1651,7 +1651,7 @@ void InstanceMap::CreateInstanceData(bool load)
|
|||
}
|
||||
else
|
||||
{
|
||||
sLog.outDebug("New instance data, \"%s\" ,initialized!",i_script.c_str());
|
||||
sLog.outDebug("New instance data, \"%s\" ,initialized!", objmgr.GetScriptName(i_script_id));
|
||||
i_data->Initialize();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue