From e82a934387b03a0a70e4d402eb5729c24728a698 Mon Sep 17 00:00:00 2001 From: Naios Date: Tue, 12 Apr 2016 16:52:29 +0200 Subject: Core/Scripting: Fix an assertion which was triggered at lazy unloading * Also fixes 2 warnings --- src/server/game/Scripting/ScriptReloadMgr.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/server/game/Scripting/ScriptReloadMgr.cpp') 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); } -- cgit v1.2.3