diff --git a/src/game/features/recovery/ClaimSafeEarnings.cpp b/src/game/features/recovery/ClaimSafeEarnings.cpp index 6533908..1eab720 100644 --- a/src/game/features/recovery/ClaimSafeEarnings.cpp +++ b/src/game/features/recovery/ClaimSafeEarnings.cpp @@ -73,7 +73,7 @@ namespace YimMenu::Features case eAppVinewoodMenuSafe::GARMENT_FACTORY: { if (GPBD_FM::Get()->Entries[Self::GetPlayer().GetId()].PropertyData.HackerDenData.SafeCashValue > 0) - *ScriptGlobal(2708246).As() = TRUE; + *ScriptGlobal(2708252).As() = TRUE; break; } case eAppVinewoodMenuSafe::HANDS_ON_CAR_WASH: diff --git a/src/game/features/recovery/DailyActivities.cpp b/src/game/features/recovery/DailyActivities.cpp index 1a16832..cc72c43 100644 --- a/src/game/features/recovery/DailyActivities.cpp +++ b/src/game/features/recovery/DailyActivities.cpp @@ -962,8 +962,8 @@ namespace YimMenu::Features return; ScriptGlobal(2708777).At(544).As*>()->Set(6); - *ScriptGlobal(2708777).At(547).As() = wildlifePhotographyAnimalHashes[index]; - *ScriptGlobal(2708777).At(548).As() = *Pointers.GameTimer - 1; // bypass 2 sec delay + *ScriptGlobal(2708777).At(548).As() = wildlifePhotographyAnimalHashes[index]; + *ScriptGlobal(2708777).At(549).As() = *Pointers.GameTimer - 1; // bypass 2 sec delay } else { diff --git a/src/game/frontend/submenus/Debug/Globals.cpp b/src/game/frontend/submenus/Debug/Globals.cpp index 4b6f730..efd8934 100644 --- a/src/game/frontend/submenus/Debug/Globals.cpp +++ b/src/game/frontend/submenus/Debug/Globals.cpp @@ -67,9 +67,8 @@ namespace YimMenu::Submenus { for (auto& var : SavedVariables::GetSavedGlobals()) { - const auto& value = var.Read(); - ImGui::PushID(value); - DrawSavedVariablePreview(var, value); + ImGui::PushID(var.name.c_str()); + DrawSavedVariablePreview(var, var.Read()); ImGui::PopID(); } ImGui::EndListBox(); diff --git a/src/game/pointers/Pointers.cpp b/src/game/pointers/Pointers.cpp index 15009b7..83e4b5d 100644 --- a/src/game/pointers/Pointers.cpp +++ b/src/game/pointers/Pointers.cpp @@ -318,7 +318,7 @@ namespace YimMenu NetworkTime = ptr.Add(2).Rip().As(); }); - constexpr auto gameTimerPtrn = Pattern<"3B 2D ? ? ? ? 76">("GameTimer"); + constexpr auto gameTimerPtrn = Pattern<"3B 2D ? ? ? ? 76 ? 89 D9">("GameTimer"); scanner.Add(gameTimerPtrn, [this](PointerCalculator ptr) { GameTimer = ptr.Add(2).Rip().As(); });