From 9966494447c9b8d07d18a68b15803e1275003b00 Mon Sep 17 00:00:00 2001 From: stratomaster64 Date: Fri, 15 Apr 2022 21:24:54 -0400 Subject: [PATCH] fixed flag oversight --- libultraship/libultraship/GameSettings.cpp | 2 +- libultraship/libultraship/SohImGuiImpl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libultraship/libultraship/GameSettings.cpp b/libultraship/libultraship/GameSettings.cpp index 6ac40b28e..126c0f07c 100644 --- a/libultraship/libultraship/GameSettings.cpp +++ b/libultraship/libultraship/GameSettings.cpp @@ -134,7 +134,7 @@ namespace Game { CVar_SetS32("gEzISG", Settings.cheats.ez_isg); Settings.cheats.no_restrict_item = stob(Conf[CheatSection]["no_restrict_item"]); - CVar_SetS32("gNoRestrictItem", Settings.cheats.no_restrict_item); + CVar_SetS32("gNoRestrictItems", Settings.cheats.no_restrict_item); Settings.cheats.freeze_time = stob(Conf[CheatSection]["freeze_time"]); CVar_SetS32("gFreezeTime", Settings.cheats.freeze_time); diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index 2dd5b9a1c..0539e6778 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -479,7 +479,7 @@ namespace SohImGui { } if (ImGui::Checkbox("Unrestricted Items", &Game::Settings.cheats.no_restrict_item)) { - CVar_SetS32("gNoRestrictItem", Game::Settings.cheats.no_restrict_item); + CVar_SetS32("gNoRestrictItems", Game::Settings.cheats.no_restrict_item); needs_save = true; }