mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Fix instance load broken by me in 8c4b824176
--HG-- branch : trunk
This commit is contained in:
@@ -2627,11 +2627,11 @@ void InstanceMap::CreateInstanceData(bool load)
|
||||
if (result)
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
const char* data = fields[0].GetString();
|
||||
if (data && (strncmp(data, "", 1) == 0))
|
||||
std::string data = fields[0].GetString();
|
||||
if (data != "")
|
||||
{
|
||||
sLog.outDebug("Loading instance data for `%s` with id %u", objmgr.GetScriptName(i_script_id), i_InstanceId);
|
||||
i_data->Load(data);
|
||||
i_data->Load(data.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user