Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidonete committed Mar 8, 2024
1 parent 7fcbb0c commit dd06e50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playerbot/strategy/actions/CheatAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> splitted = split(param, ',');
for (vector<string>::iterator i = splitted.begin(); i != splitted.end(); i++)
vector<std::string> splitted = split(param, ',');
for (vector<std::string>::iterator i = splitted.begin(); i != splitted.end(); i++)
{
const char* name = i->c_str();
BotCheatMask newCheat = GetCheatMask(name + 1);
Expand Down

0 comments on commit dd06e50

Please sign in to comment.