aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Scripting/ScriptReloadMgr.cpp
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2016-04-12 16:52:29 +0200
committerNaios <naios-dev@live.de>2016-04-12 16:54:11 +0200
commita3936c143da76fb1eb785c6277e5aa0470b1cf33 (patch)
tree433dfc76b5f0247a4567f37339ff7dab5a597181 /src/server/game/Scripting/ScriptReloadMgr.cpp
parent89a3fc21677f4c253e9ba09bab29e98a77bc875e (diff)
Core/Scripting: Fix an assertion which was triggered at lazy unloading
* Also fixes 2 warnings (cherry picked from commit e82a934387b03a0a70e4d402eb5729c24728a698)
Diffstat (limited to 'src/server/game/Scripting/ScriptReloadMgr.cpp')
-rw-r--r--src/server/game/Scripting/ScriptReloadMgr.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server/game/Scripting/ScriptReloadMgr.cpp b/src/server/game/Scripting/ScriptReloadMgr.cpp
index b2c8e47a54c..2f3d6126a9d 100644
--- a/src/server/game/Scripting/ScriptReloadMgr.cpp
+++ b/src/server/game/Scripting/ScriptReloadMgr.cpp
@@ -117,7 +117,7 @@ public:
if (!success)
{
- TC_LOG_ERROR("scripts.hotswap", "Failed to close the shared library \"%s\".",
+ TC_LOG_ERROR("scripts.hotswap", "Failed to unload (syscall) the shared library \"%s\".",
_path.generic_string().c_str());
return;
@@ -893,8 +893,10 @@ private:
if (!ref->second.unique())
{
TC_LOG_INFO("scripts.hotswap",
- "Script module %s is still used by %lu scripts. "
- "Will lazy unload the module once all scripts stopped using it.",
+ "Script module %s is still used by %lu spell, aura or instance scripts. "
+ "Will lazy unload the module once all scripts stopped using it, "
+ "to use the latest version of an edited script unbind yourself from "
+ "the instance or re-cast the spell.",
ref->second->GetScriptModule(), ref->second.use_count() - 1);
}