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:
jackpoz
2020-03-09 20:08:26 +01:00
committed by Shauren
parent 1fa4403b8c
commit c03af362c6

View File

@@ -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.