mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Scripts: Show a message when aborting because two scripts have the same registered name
(cherry picked from commit 96df3b7adb)
This commit is contained in:
@@ -971,7 +971,7 @@ public:
|
||||
if (stored_script.second->GetName() == script->GetName())
|
||||
{
|
||||
// If the script is already assigned -> delete it!
|
||||
TC_LOG_ERROR("scripts", "Script '%s' already assigned with the same script name, "
|
||||
ABORT_MSG("Script '%s' already assigned with the same script name, "
|
||||
"so the script can't work.", script->GetName().c_str());
|
||||
|
||||
// Error that should be fixed ASAP.
|
||||
|
||||
Reference in New Issue
Block a user