diff --git a/playerbot/strategy/actions/CheatAction.cpp b/playerbot/strategy/actions/CheatAction.cpp index 7c850cfa..79c03c24 100644 --- a/playerbot/strategy/actions/CheatAction.cpp +++ b/playerbot/strategy/actions/CheatAction.cpp @@ -9,10 +9,10 @@ bool CheatAction::Execute(Event& event) Player* requester = event.getOwner() ? event.getOwner() : GetMaster(); if (requester && requester->GetSession()->GetSecurity() >= SEC_GAMEMASTER) { - string param = event.getParam() + std::string param = event.getParam(); uint32 cheatMask = (uint32)ai->GetCheat(); - vector splitted = split(param, ','); - for (vector::iterator i = splitted.begin(); i != splitted.end(); i++) + vector splitted = split(param, ','); + for (vector::iterator i = splitted.begin(); i != splitted.end(); i++) { const char* name = i->c_str(); BotCheatMask newCheat = GetCheatMask(name + 1);