Bugfix: Apply checks for whether the player can select replies on single "next" replies as well.

This commit is contained in:
Oskar Wiksten
2013-05-12 13:14:08 +02:00
parent 348b74ad7b
commit 1df5d183dc

View File

@@ -280,8 +280,10 @@ public final class ConversationController {
public boolean hasOnlyOneNextReply() {
if (currentPhrase.replies == null) return false;
if (currentPhrase.replies.length != 1) return false;
if (currentPhrase.replies[0].text.equals(ConversationCollection.REPLY_NEXT)) return true;
return false;
final Reply singleReply = currentPhrase.replies[0];
if (!singleReply.text.equals(ConversationCollection.REPLY_NEXT)) return false;
if (!canSelectReply(player, singleReply)) return false;
return true;
}
}
}