Skip to content
Permalink
Browse files

fix up conversion of saved dead crafts

  • Loading branch information
Warboy1982 committed Nov 22, 2019
1 parent 8b47911 commit f7d606d816d062e9f82739cc20e1c321dacdf919
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Savegame/SaveConverter.cpp
@@ -915,12 +915,12 @@ void SaveConverter::loadDatCraft()

craft->load(node, _mod, _save);

if (flight != 0 && dest != 0xFF)
if (flight != 0 && dest != 0xFFFF)
{
Target *t = _targets[dest];
craft->setDestination(t);
}
if (base != 0xFF)
if (base != 0xFFFF)
{
Base *b = dynamic_cast<Base*>(_targets[base]);
craft->setBase(b, false);

0 comments on commit f7d606d

Please sign in to comment.
You can’t perform that action at this time.