Skip to content

Commit

Permalink
Validate VassalNextSide - check that it is an available side, rather …
Browse files Browse the repository at this point in the history
…than just not unavailable.
  • Loading branch information
riverwanderer committed Sep 4, 2023
1 parent 007630c commit c5dcadb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ protected String promptForSide() {
// Reserved property VassalNextSide may override hotseat default; must be an available side
String nextChoice = (String) GameModule.getGameModule().getProperty("VassalNextSide");

if ( nextChoice.isEmpty() || !availableSides.contains(nextChoice)) {
if (nextChoice.isEmpty() || !availableSides.contains(nextChoice)) {
boolean found = false; // If we find a usable side
final String mySide = getMySide(); // Get our own side, so we can find the "next" one
final int myidx = (mySide != null) ? sides.indexOf(mySide) : -1; // See if we have a current non-observe side.
Expand Down

0 comments on commit c5dcadb

Please sign in to comment.