Created
December 26, 2015 10:44
-
-
Save Natureknight/4d5b5d83ab810e5518f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/scripts/Custom/copyGearCommands.cpp b/src/server/scripts/Custom/copyGearCommands.cpp | |
index cfdab8f..dac3e51 100644 | |
--- a/src/server/scripts/Custom/copyGearCommands.cpp | |
+++ b/src/server/scripts/Custom/copyGearCommands.cpp | |
@@ -116,8 +116,8 @@ public: | |
target->GetName()); | |
LearnPlateMailSpells(player); | |
- player->UpdateSkillsForLevel(); | |
LearnWeaponSkills(player); | |
+ player->UpdateSkillsForLevel(); | |
player->SaveToDB(); | |
return true; | |
} | |
@@ -259,7 +259,7 @@ private: | |
for (uint8 i = EQUIPMENT_SLOT_START; i < EQUIPMENT_SLOT_END; i++) | |
{ | |
// Delete previous items if equipped | |
- player->RemoveItem(INVENTORY_SLOT_BAG_0, i, true); | |
+ player->DestroyItem(INVENTORY_SLOT_BAG_0, i, true); | |
if (Item* equippedItem = target->GetItemByPos(INVENTORY_SLOT_BAG_0, i)) | |
{ | |
warning: LF will be replaced by CRLF in src/server/scripts/Custom/copyGearCommands.cpp. | |
The file will have its original line endings in your working directory. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment