Fix order deserialization when there is no indended order subject
This commit is contained in:
@@ -140,7 +140,7 @@ namespace OpenRA
|
|||||||
if (world == null)
|
if (world == null)
|
||||||
return new Order(order, null, target, targetString, queued, extraLocation, extraData);
|
return new Order(order, null, target, targetString, queued, extraLocation, extraData);
|
||||||
|
|
||||||
if (subject == null)
|
if (subject == null && subjectId != uint.MaxValue)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
return new Order(order, subject, target, targetString, queued, extraLocation, extraData);
|
return new Order(order, subject, target, targetString, queued, extraLocation, extraData);
|
||||||
|
|||||||
Reference in New Issue
Block a user