summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 9b10b63..f9553a6 100644
--- a/rules.js
+++ b/rules.js
@@ -2279,10 +2279,10 @@ states.transfer_dropped_shipments = {
function may_remove_shipment() {
// Captured Goods
- if (typeof game.op === "object" && game.op.type === "Attack")
+ if (game.op !== null && typeof game.op === "object" && game.op.type === "Attack")
return false
// Commandeer
- if (typeof game.sa === "object" && game.sa.commandeer)
+ if (game.sa !== null && typeof game.sa === "object" && game.sa.commandeer)
return false
return true
}