Fix order deserialization when there is no indended order subject

This commit is contained in:
Pavel Penev
2017-11-05 14:25:10 +02:00
committed by reaperrr
parent d602ec6485
commit 8d7eb0bc47

View File

@@ -140,7 +140,7 @@ namespace OpenRA
if (world == null)
return new Order(order, null, target, targetString, queued, extraLocation, extraData);
if (subject == null)
if (subject == null && subjectId != uint.MaxValue)
return null;
return new Order(order, subject, target, targetString, queued, extraLocation, extraData);