summaryrefslogtreecommitdiffstats
path: root/src/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index 37d9c74..c0d3fe8 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -5,11 +5,11 @@ void Window::MakeClick(short ClickedSlot, bool Lmb, bool dropMode) {
PacketClickWindow packet(WindowId, ClickedSlot, Lmb ? 0 : 1, actions++, 0, slots[ClickedSlot]);
this->pendingTransactions.push(packet);
std::swap(slots[ClickedSlot], handSlot);
- transactions.push_back(std::make_pair(actions, std::make_pair(ClickedSlot, -1)));
+ transactions.emplace_back(std::make_pair(actions, std::make_pair(ClickedSlot, -1)));
} else {
PacketClickWindow packet(WindowId, ClickedSlot, Lmb ? 0 : 1, actions++, 0, SlotDataType());
this->pendingTransactions.push(packet);
- transactions.push_back(std::make_pair(actions, std::make_pair(ClickedSlot, -1)));
+ transactions.emplace_back(std::make_pair(actions, std::make_pair(ClickedSlot, -1)));
}
}