Fix skipping identical stages in editor, fixes #88

This commit is contained in:
HappyPikachu 2017-07-31 22:13:46 -04:00
parent 9954258a19
commit ed357e9a84

View File

@ -1477,8 +1477,10 @@ public class QuestFactory implements ConversationAbandonedListener {
}
//
// Stages
int index = 1;
for (Stage stage : q.orderedStages) {
final String pref = "stage" + (q.orderedStages.indexOf(stage) + 1);
final String pref = "stage" + index;
index++;
cc.setSessionData(pref, Boolean.TRUE);
if (stage.blocksToBreak != null) {
LinkedList<String> names = new LinkedList<String>();