From 4a389e5e5646c3ce8d597fc62539780696b38c7c Mon Sep 17 00:00:00 2001 From: Luan Luciano Date: Sun, 31 Mar 2024 04:10:57 -0300 Subject: [PATCH] Update player.cpp --- src/creatures/players/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/creatures/players/player.cpp b/src/creatures/players/player.cpp index 7edad863137..ca9e04b4fd0 100644 --- a/src/creatures/players/player.cpp +++ b/src/creatures/players/player.cpp @@ -4935,7 +4935,7 @@ void Player::addOutfit(uint16_t lookType, uint8_t addons) { return; } } - outfits.insert(std::pair(lookType, addons)); + outfits.emplace(lookType, addons); } bool Player::removeOutfit(uint16_t lookType) { @@ -5844,7 +5844,7 @@ bool Player::tameMount(uint16_t mountId) { return false; } - mounts.insert(mountId); + mounts.emplace(mountId); return true; }