Merge pull request #32 from geocine/fix/compiler-error

Put back button from #23 for 2x exploit by BennettStaley
This commit is contained in:
swordbluesword 2024-01-27 17:56:41 +08:00 committed by GitHub
commit d9b1bbfb5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -268,6 +268,11 @@ namespace DX11_Base {
ImGui::InputInt("Slot to modify (start 0):", &Config.AddItemSlot); ImGui::InputInt("Slot to modify (start 0):", &Config.AddItemSlot);
ImGui::InputInt("Multiple of how much:", &Config.AddItemCount); ImGui::InputInt("Multiple of how much:", &Config.AddItemCount);
if (ImGui::Button("Give items from slot", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
{
AddToInventoryContainer(Config.AddItemCount, Config.AddItemSlot);
}
// this does not work lol // this does not work lol
// std::stringstream AddItemsString; // std::stringstream AddItemsString;
// AddItemsString << "Give " << Config.AddItemCount << " items from slot" << Config.AddItemSlot; // AddItemsString << "Give " << Config.AddItemCount << " items from slot" << Config.AddItemSlot;