Skip to content

Commit d58a2a8

Browse files
author
Nathan Bolton
committed
Bug fix by Caethyril: prevents 1 command from getting skipped
1 parent 6593308 commit d58a2a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/rpg_objects/Game_Character.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ Game_Character.prototype.memorizeMoveRoute = function() {
7979

8080
Game_Character.prototype.restoreMoveRoute = function() {
8181
this._moveRoute = this._originalMoveRoute;
82-
this._moveRouteIndex = this._originalMoveRouteIndex;
82+
// Bug fix by Caethyril: prevents skipping 1 command from getting skipped
83+
this._moveRouteIndex = this._originalMoveRouteIndex - 1;
8384
this._originalMoveRoute = null;
8485
this._callerEventInfo = null;
8586
};

0 commit comments

Comments
 (0)