Merge pull request #10438 from druiz17/input-recorder-fix

fix issue when loading recording file into the input recorder
This commit is contained in:
anshuman64 2017-05-10 17:34:46 -07:00 committed by GitHub
commit 1be404ef87

View file

@ -199,7 +199,7 @@ namespace controller {
for (int actionIndex = 0; actionIndex < actionArrayList.size(); actionIndex++) {
QJsonArray actionState = actionArrayList[actionIndex].toArray();
for (int index = 0; index < actionState.size(); index++) {
_currentFrameActions[index] = actionState[index].toInt();
_currentFrameActions[index] = actionState[index].toDouble();
}
_actionStateList.push_back(_currentFrameActions);
_currentFrameActions = ActionStates(toInt(Action::NUM_ACTIONS));