Skip to content

Commit 579ef71

Browse files
committed
rpgtkoolmv#175 recovery of the save data compatibility
On after load, if scene frame count is undefined, it is initialized by graphics frame count.
1 parent 9875c94 commit 579ef71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/rpg_objects/Game_System.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Game_System.prototype.onBeforeSave = function() {
180180

181181
Game_System.prototype.onAfterLoad = function() {
182182
Graphics.frameCount = this._framesOnSave;
183-
SceneManager.setFrameCount(this._sceneFramesOnSave);
183+
SceneManager.setFrameCount(this._sceneFramesOnSave || this._framesOnSave);
184184
AudioManager.playBgm(this._bgmOnSave);
185185
AudioManager.playBgs(this._bgsOnSave);
186186
};

0 commit comments

Comments
 (0)