diff options
author | LaG1924 <lag1924@gmail.com> | 2023-07-08 20:30:25 +0200 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2023-07-08 21:24:04 +0200 |
commit | c984afdf47ef31511024c6b70bd4b4c4e64f56a6 (patch) | |
tree | 3c539c9e7de841c6616f532dadb7c8c1ef552d95 /src/Window.cpp | |
parent | Merge pull request #80 from LaG1924/ftr/better-water (diff) | |
download | AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar.gz AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar.bz2 AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar.lz AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar.xz AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.tar.zst AltCraft-c984afdf47ef31511024c6b70bd4b4c4e64f56a6.zip |
Diffstat (limited to 'src/Window.cpp')
-rw-r--r-- | src/Window.cpp | 4 |
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))); } } |