From c3df9e95890743d7351897c01c07a5e01ade3fe1 Mon Sep 17 00:00:00 2001 From: hater Date: Mon, 23 Oct 2023 11:08:14 -0400 Subject: [PATCH] update typo --- modules/mod-Forge/src/ForgeCache.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/mod-Forge/src/ForgeCache.cpp b/modules/mod-Forge/src/ForgeCache.cpp index 6b5cd381094008..d70649ea1167b0 100644 --- a/modules/mod-Forge/src/ForgeCache.cpp +++ b/modules/mod-Forge/src/ForgeCache.cpp @@ -144,7 +144,7 @@ struct ForgeTalentTab }; // XMOG -struct ForgeCharacaterXmog +struct ForgeCharacterXmog { std::string name; std::unordered_map slottedItems; @@ -818,7 +818,7 @@ class ForgeCache : public DatabaseScript } void AddXmogSet(Player* player, uint32 setId, std::string name) { - ForgeCharacaterXmog* xmog = new ForgeCharacaterXmog(); + ForgeCharacterXmog* xmog = new ForgeCharacterXmog(); xmog->name = name; auto newSetId = FirstOpenXmogSlot(player); @@ -904,7 +904,7 @@ class ForgeCache : public DatabaseScript std::vector FlaggedForReset; // xmog - std::unordered_map> XmogSets; + std::unordered_map> XmogSets; uint8 xmogSlots[14] = { EQUIPMENT_SLOT_HEAD, EQUIPMENT_SLOT_SHOULDERS, EQUIPMENT_SLOT_BODY, EQUIPMENT_SLOT_CHEST, EQUIPMENT_SLOT_WAIST, EQUIPMENT_SLOT_LEGS, EQUIPMENT_SLOT_FEET, EQUIPMENT_SLOT_WRISTS, EQUIPMENT_SLOT_HANDS, EQUIPMENT_SLOT_BACK, EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND, EQUIPMENT_SLOT_RANGED, EQUIPMENT_SLOT_TABARD }; @@ -1116,7 +1116,7 @@ class ForgeCache : public DatabaseScript uint32 ranged = xmogSet[15].Get(); uint32 tabard = xmogSet[16].Get(); - ForgeCharacaterXmog* set = new ForgeCharacaterXmog(); + ForgeCharacterXmog* set = new ForgeCharacterXmog(); set->name = name; set->slottedItems[EQUIPMENT_SLOT_HEAD] = head; set->slottedItems[EQUIPMENT_SLOT_SHOULDERS] = shoulders; @@ -1137,7 +1137,7 @@ class ForgeCache : public DatabaseScript } while (xmogSets->NextRow()); } - void SaveXmogSetInternal(Player* player, uint32 set, ForgeCharacaterXmog* xmog) { + void SaveXmogSetInternal(Player* player, uint32 set, ForgeCharacterXmog* xmog) { auto trans = CharacterDatabase.BeginTransaction(); trans->Append("INSERT INTO acore_characters.forge_character_transmogsets (guid, setid, setname, head, shoulders, shirt, chest, waist, legs, feet, wrists, hands, back, mh, oh, ranged, tabard) VALUES({}, {}, '{}', {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}) on duplicate key update setname = '{}' , head = {}, shoulders = {}, shirt = {}, chest = {}, waist = {}, legs = {}, feet = {}, wrists = {}, hands = {}, back = {}, mh = {}, oh = {}, ranged = {}, tabard = {}", player->GetGUID().GetCounter(), set, xmog->name, xmog->slottedItems[EQUIPMENT_SLOT_HEAD], xmog->slottedItems[EQUIPMENT_SLOT_SHOULDERS],