diff options
Diffstat (limited to 'src/server/game/Scripting/ScriptMgr.cpp')
-rw-r--r-- | src/server/game/Scripting/ScriptMgr.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/server/game/Scripting/ScriptMgr.cpp b/src/server/game/Scripting/ScriptMgr.cpp index 4d19c9a8513..3252ca8d893 100644 --- a/src/server/game/Scripting/ScriptMgr.cpp +++ b/src/server/game/Scripting/ScriptMgr.cpp @@ -287,8 +287,8 @@ public: { // See if the script is using the same memory as another script. If this happens, it means that // someone forgot to allocate new memory for a script. - TC_LOG_ERROR("scripts", "Script '%s' has same memory pointer as '%s'.", - first->GetName().c_str(), second->GetName().c_str()); + TC_LOG_ERROR("scripts", "Script '{}' has same memory pointer as '{}'.", + first->GetName(), second->GetName()); } }; @@ -810,8 +810,8 @@ public: else { // The script uses a script name from database, but isn't assigned to anything. - TC_LOG_ERROR("sql.sql", "Script '%s' exists in the core, but the database does not assign it to any creature.", - script->GetName().c_str()); + TC_LOG_ERROR("sql.sql", "Script '{}' exists in the core, but the database does not assign it to any creature.", + script->GetName()); // Avoid calling "delete script;" because we are currently in the script constructor // In a valid scenario this will not happen because every script has a name assigned in the database @@ -1076,10 +1076,10 @@ void ScriptMgr::Initialize() if (scriptName.empty()) continue; - TC_LOG_ERROR("sql.sql", "Script '%s' is referenced by the database, but does not exist in the core!", scriptName.c_str()); + TC_LOG_ERROR("sql.sql", "Script '{}' is referenced by the database, but does not exist in the core!", scriptName); } - TC_LOG_INFO("server.loading", ">> Loaded %u C++ scripts in %u ms", + TC_LOG_INFO("server.loading", ">> Loaded {} C++ scripts in {} ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime)); } @@ -2290,10 +2290,10 @@ WorldMapScript::WorldMapScript(char const* name, uint32 mapId) : ScriptObject(name), MapScript(sMapStore.LookupEntry(mapId)) { if (!GetEntry()) - TC_LOG_ERROR("scripts", "Invalid WorldMapScript for %u; no such map ID.", mapId); + TC_LOG_ERROR("scripts", "Invalid WorldMapScript for {}; no such map ID.", mapId); if (GetEntry() && !GetEntry()->IsWorldMap()) - TC_LOG_ERROR("scripts", "WorldMapScript for map %u is invalid.", mapId); + TC_LOG_ERROR("scripts", "WorldMapScript for map {} is invalid.", mapId); ScriptRegistry<WorldMapScript>::Instance()->AddScript(this); } @@ -2302,10 +2302,10 @@ InstanceMapScript::InstanceMapScript(char const* name, uint32 mapId) : ScriptObject(name), MapScript(sMapStore.LookupEntry(mapId)) { if (!GetEntry()) - TC_LOG_ERROR("scripts", "Invalid InstanceMapScript for %u; no such map ID.", mapId); + TC_LOG_ERROR("scripts", "Invalid InstanceMapScript for {}; no such map ID.", mapId); if (GetEntry() && !GetEntry()->IsDungeon()) - TC_LOG_ERROR("scripts", "InstanceMapScript for map %u is invalid.", mapId); + TC_LOG_ERROR("scripts", "InstanceMapScript for map {} is invalid.", mapId); ScriptRegistry<InstanceMapScript>::Instance()->AddScript(this); } @@ -2319,10 +2319,10 @@ BattlegroundMapScript::BattlegroundMapScript(char const* name, uint32 mapId) : ScriptObject(name), MapScript(sMapStore.LookupEntry(mapId)) { if (!GetEntry()) - TC_LOG_ERROR("scripts", "Invalid BattlegroundMapScript for %u; no such map ID.", mapId); + TC_LOG_ERROR("scripts", "Invalid BattlegroundMapScript for {}; no such map ID.", mapId); if (GetEntry() && !GetEntry()->IsBattleground()) - TC_LOG_ERROR("scripts", "BattlegroundMapScript for map %u is invalid.", mapId); + TC_LOG_ERROR("scripts", "BattlegroundMapScript for map {} is invalid.", mapId); ScriptRegistry<BattlegroundMapScript>::Instance()->AddScript(this); } |