Commit 1297c475 authored by Vladislav Kiselev's avatar Vladislav Kiselev

Fixed bug with Operation's executor.

parent 61b658ce
......@@ -718,7 +718,11 @@ public class TaskCase {
{
String[] items = rStr.substring(0, rStr.indexOf('[')).split(" ");
op.setExecutor(m_vessel.get(Integer.valueOf(items[0].trim())));
MovingObject ex = m_vessel.get(Integer.valueOf(items[0].trim()));
if (ex == null) {
ex = m_bunker.get(Integer.valueOf(items[0].trim()));
}
op.setExecutor(ex);
if (items.length > 1) {
op.setBunker(Optional.of(m_bunker.get(Integer.valueOf(items[1].trim()))));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment