From e1252f22bac13df4db9ba6820a7dd10c7027daeb Mon Sep 17 00:00:00 2001 From: Miepee Date: Sat, 29 Jun 2024 11:54:54 +0200 Subject: [PATCH] Dont crash when saving at save station --- CHANGELOG.md | 3 +++ YAMS-LIB/patches/qol/SaveCutsceneSkip.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6aeb7e..54e3aea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,10 @@ All notable changes to this project will be documented in this file. This format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project (tries to) adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) +## [2.7.2] - 2024-06-29 +### Fixed +- The game doesn't crash anymore when saving at a save station. ## [2.7.1] - 2024-06-28 diff --git a/YAMS-LIB/patches/qol/SaveCutsceneSkip.cs b/YAMS-LIB/patches/qol/SaveCutsceneSkip.cs index 058ff27..2efa706 100644 --- a/YAMS-LIB/patches/qol/SaveCutsceneSkip.cs +++ b/YAMS-LIB/patches/qol/SaveCutsceneSkip.cs @@ -34,7 +34,7 @@ public static void Apply(UndertaleData gmData, GlobalDecompileContext decompileC instance_create(x, y, oSaveSparks) } popup_text(get_text("Notifications", "GameSaved")) - save_game({{(!isHorde ? "save" : "working_directory + \"/TheHorde/save\"")}} + (string(global.saveslot + 1))) + save_game({{(!isHorde ? "\"save\"" : "working_directory + \"/TheHorde/save\"")}} + (string(global.saveslot + 1))) refill_heath_ammo() } if ((statetime == 230 && !global.skipSaveCutscene) || (statetime == 10 && global.skipSaveCutscene))