Skip to content

Commit

Permalink
Merge pull request #47 from fweimer/patch-1
Browse files Browse the repository at this point in the history
DiplomacyMessage: Add missing else keyword. Thank you to @fweimer
  • Loading branch information
HighwayofLife authored Dec 29, 2019
2 parents 8963506 + d4002fd commit db9b6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/sf/freecol/common/networking/DiplomacyMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public ChangeSet serverHandler(FreeColServer freeColServer,
String otherId = getStringAttribute(OTHER_ID_TAG);
if (our == null) {
cs = serverPlayer.clientError("Missing our object: " + ourId);
} if (our instanceof Unit) {
} else if (our instanceof Unit) {
ourUnit = (Unit)our;
if (!serverPlayer.owns(ourUnit)) {
cs = serverPlayer.clientError("Not our unit: " + ourId);
Expand Down

0 comments on commit db9b6be

Please sign in to comment.