Comparing version 3.3.1 to 3.3.2
@@ -539,3 +539,3 @@ 'use strict'; | ||
'number': this._stateCounter, | ||
// 'state': currentState, | ||
'state': this.toJSON(), | ||
'action': action, | ||
@@ -561,4 +561,6 @@ 'revert': action.revert | ||
var currentNumber = Number.MIN_SAFE_VALUE; | ||
var index = 0; | ||
var index = 0, | ||
oldState = this.toJSON(); | ||
while (currentNumber < number && index < this._stateQueue.length) { | ||
oldState = this._stateQueue[index].state; | ||
currentNumber = this._stateQueue[index++].number; | ||
@@ -569,2 +571,4 @@ } | ||
this.clear(); | ||
this.fromJSON(oldState); | ||
this.fromJSON(state); | ||
@@ -571,0 +575,0 @@ } |
{ | ||
"name": "sam-ecs", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "A specialized entity component system", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51980
1304