diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2024-01-21 05:55:34 +0000 |
|---|---|---|
| committer | Garrett Cox <garrettjcox@gmail.com> | 2024-05-22 09:04:58 -0500 |
| commit | b341e7bab015d9e3f54bb3a8cc645bc08979a241 (patch) | |
| tree | c22a381efb6c1b9d9570ef9c385275bc0434e69a /mm/2s2h/DeveloperTools/SaveEditor.cpp | |
| parent | f4cae758b5b1e085e37c659144082abb707a02e8 (diff) | |
Small fixes to save editor (#86)
Diffstat (limited to 'mm/2s2h/DeveloperTools/SaveEditor.cpp')
| -rw-r--r-- | mm/2s2h/DeveloperTools/SaveEditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/2s2h/DeveloperTools/SaveEditor.cpp b/mm/2s2h/DeveloperTools/SaveEditor.cpp index 720098379..25cf9d895 100644 --- a/mm/2s2h/DeveloperTools/SaveEditor.cpp +++ b/mm/2s2h/DeveloperTools/SaveEditor.cpp @@ -28,7 +28,7 @@ const char* MAGIC_LEVEL_NAMES[3] = { "No Magic", "Single Magic", "Double Magic" const int8_t MAGIC_LEVEL_MAX = 2; InventorySlot selectedInventorySlot = SLOT_NONE; -std::vector<ItemId> safeItemsForInventorySlot[SLOT_MASK_FIERCE_DEITY] = {}; +std::vector<ItemId> safeItemsForInventorySlot[SLOT_MASK_FIERCE_DEITY + 1] = {}; void initSafeItemsForInventorySlot() { for (int i = 0; i < sizeof(gItemSlots); i++) { @@ -127,7 +127,7 @@ void DrawGeneralTab() { ImGui::PushStyleColor(ImGuiCol_FrameBg, UIWidgets::Colors::Gray); ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 3.0f); ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10.0f, 8.0f)); - char playerNameBuf[9]; + static char playerNameBuf[9]; ImGui::InputText("##playerNameInput", getPlayerName(playerNameBuf), 9, ImGuiInputTextFlags_CallbackAlways | ImGuiInputTextFlags_AutoSelectAll, setPlayerName); ImGui::PopStyleVar(2); ImGui::PopStyleColor(1); |
