Skip to content

Commit

Permalink
Update transmog_scripts.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitzunu authored Aug 10, 2024
1 parent 6b38ece commit f9fbf9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transmog_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ class npc_transmogrifier : public CreatureScript
}
std::string name(code);
if (name.find('"') != std::string::npos || name.find('\\') != std::string::npos)
player->GetSession()->SendNotification(LANG_PRESET_ERR_INVALID_NAME);
ChatHandler(player->GetSession()).SendNotification(LANG_PRESET_ERR_INVALID_NAME);
else
{
for (uint8 presetID = 0; presetID < sT->GetMaxSets(); ++presetID) // should never reach over max
Expand Down Expand Up @@ -662,7 +662,7 @@ class npc_transmogrifier : public CreatureScript
cost += sT->GetSetCopperCost();
if (!player->HasEnoughMoney(cost))
{
player->GetSession()->SendNotification(LANG_ERR_TRANSMOG_NOT_ENOUGH_MONEY);
ChatHandler(player->GetSession()).SendNotification(LANG_ERR_TRANSMOG_NOT_ENOUGH_MONEY);
break;
}

Expand Down

0 comments on commit f9fbf9e

Please sign in to comment.