Codechange: Use correct constant for invalid cargo type.

This commit is contained in:
Peter Nelson
2023-05-23 08:33:49 +01:00
committed by PeterN
parent 7ef22af2bb
commit 9d1b131c44
3 changed files with 31 additions and 30 deletions

View File

@@ -189,7 +189,7 @@ public:
}
/** Bare constructor, only for save/load. */
LinkGraph() : cargo(INVALID_CARGO), last_compression(0) {}
LinkGraph() : cargo(CT_INVALID), last_compression(0) {}
/**
* Real constructor.
* @param cargo Cargo the link graph is about.