OSDN Git Service

出撃中での艦娘入居状況が正しく反映しない問題を修正
authormasakih <masakih@users.sourceforge.jp>
Thu, 20 Apr 2017 13:56:42 +0000 (22:56 +0900)
committermasakih <masakih@users.sourceforge.jp>
Thu, 20 Apr 2017 13:56:42 +0000 (22:56 +0900)
close #37128

KCD/DummyShipCommand.swift

index 7ba9429..6b5bcb1 100644 (file)
@@ -21,12 +21,10 @@ class DummyShipCommand: JSONCommand {
     }
     
     private func checkGetShip() {
-        guard !data["api_get_ship"].exists()
-            else { return }
-        DummyShipCommand.needsEnterDummy = true
+        DummyShipCommand.needsEnterDummy = data["api_get_ship"].exists()
     }
     private func enterDummy() {
-        if !DummyShipCommand.needsEnterDummy { return }
+        guard DummyShipCommand.needsEnterDummy else { return }
         let store = ServerDataStore.oneTimeEditor()
         store.createShip()?.id = -2
         DummyShipCommand.needsEnterDummy = false