diff --git a/src/npc_emblem_transfer.cpp b/src/npc_emblem_transfer.cpp index 6c92ec1..bb4937f 100644 --- a/src/npc_emblem_transfer.cpp +++ b/src/npc_emblem_transfer.cpp @@ -191,7 +191,7 @@ class npc_emblem_transfer : public CreatureScript uint64 targetGuid = MAKE_NEW_GUID(action, 0, HIGHGUID_PLAYER); uint32 receivedAmount = transferAmount * (1.0f - penalty); CharacterDatabase.PExecute("INSERT INTO emblem_transferences(sender_guid, receiver_guid, emblem_entry, amount) VALUES (%u, %u, %u, %u)", player->GetSession()->GetGuidLow(), targetGuid, emblemId, receivedAmount); - player->DestroyItemCount(emblemId, (int)-transferAmount, true, false); + player->DestroyItemCount(emblemId, transferAmount, true, false); player->PlayerTalkClass->ClearMenus(); // Clear window before farewell player->ADD_GOSSIP_ITEM(GOSSIP_ICON_TAXI, "Transfer completed! Log in with your other character to retrieve the emblems", GOSSIP_SENDER_MAIN, ACTION_CLOSE);