From de11c69904d3b652bc1fa39b51fa8818e2c34c9c Mon Sep 17 00:00:00 2001 From: NotAdam Date: Sun, 3 Feb 2019 18:37:58 +1100 Subject: [PATCH] cleanup onBnpcKill debug message --- src/world/Script/ScriptMgr.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/world/Script/ScriptMgr.cpp b/src/world/Script/ScriptMgr.cpp index b8a59322..e5c59236 100644 --- a/src/world/Script/ScriptMgr.cpp +++ b/src/world/Script/ScriptMgr.cpp @@ -276,8 +276,6 @@ bool Sapphire::Scripting::ScriptMgr::onBNpcKill( Entity::Player& player, uint16_ { auto pEventMgr = framework()->get< World::Manager::EventMgr >(); - std::string eventName = "onBnpcKill_" + std::to_string( nameId ); - // loop through all active quests and try to call available onBNpcKill callbacks for( size_t i = 0; i < 30; i++ ) { @@ -292,7 +290,7 @@ bool Sapphire::Scripting::ScriptMgr::onBNpcKill( Entity::Player& player, uint16_ { std::string objName = pEventMgr->getEventName( questId ); - player.sendDebug( "Calling: {0}.{1}", objName, eventName ); + player.sendDebug( "Calling: {0}.onBnpcKill nameId#{1}", objName, nameId ); script->onBNpcKill( nameId, player ); }