Fix print about invalid format (#739)

This commit is contained in:
Revision
2024-11-24 22:09:04 +01:00
committed by GitHub
parent eb583de6aa
commit f925db1ca4

View File

@@ -17,8 +17,8 @@ bool AcceptAllQuestsAction::ProcessQuest(Quest const* quest, Object* questGiver)
if (botAI->HasStrategy("debug quest", BotState::BOT_STATE_NON_COMBAT) || botAI->HasStrategy("debug rpg", BotState::BOT_STATE_COMBAT)) if (botAI->HasStrategy("debug quest", BotState::BOT_STATE_NON_COMBAT) || botAI->HasStrategy("debug rpg", BotState::BOT_STATE_COMBAT))
{ {
LOG_INFO("playerbots", "{} => Quest [ {} ] accepted", bot->GetName(), quest->GetTitle()); LOG_INFO("playerbots", "{} => Quest [{}] accepted", bot->GetName(), quest->GetTitle());
bot->Say("Quest [ " + text_quest + " ] accepted", LANG_UNIVERSAL); bot->Say("Quest [" + text_quest + "] accepted", LANG_UNIVERSAL);
} }
return true; return true;
@@ -86,7 +86,7 @@ bool AcceptQuestAction::Execute(Event event)
if (hasAccept) if (hasAccept)
{ {
std::stringstream ss; std::stringstream ss;
ss << "AcceptQuestAction {" << qInfo->GetTitle() << "} - {" << std::to_string(qInfo->GetQuestId()) << "}"; ss << "AcceptQuestAction [" << qInfo->GetTitle() << "] - [" << std::to_string(qInfo->GetQuestId()) << "]";
LOG_INFO("playerbots", "{}", ss.str().c_str()); LOG_INFO("playerbots", "{}", ss.str().c_str());
// botAI->TellMaster(ss.str()); // botAI->TellMaster(ss.str());
} }