Commit b911e600 authored by Vladislav Kiselev's avatar Vladislav Kiselev

Fixed deserialization bug.

parent 2f3980f4
......@@ -660,6 +660,11 @@ public class TaskCase {
mt.setIntensity(direction*Double.parseDouble(tokens[8].trim()));
mt.setWithMooring(tokens[9].trim().equals("M"));
if ((mt.getStorage() != null) && (mt.getBunkerType().isPresent())) {
mt.setLoaderType(mt.getBunkerType());
mt.setBunkerType(OptionalInt.empty());
}
templates.add(mt);
m_template.put(mt.getId(), mt);
}
......
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