Return propertype conversion routes larger than 1

- Fixed: PType::FindConversion() gave all but the source type a distance of
  0, so it only ever returned just one step of a route that requires more
  than one step.
This commit is contained in:
Randy Heit 2013-10-30 20:52:46 -05:00
parent 39d7fa0605
commit 2adf5782b9

View file

@ -291,7 +291,7 @@ int PType::FindConversion(PType *target, const PType::Conversion **slots, int nu
PType *succ = t->Conversions[i].TargetType;
if (!visited.Check(succ))
{
succ->MarkPred(t, i, Distance + 1);
succ->MarkPred(t, i, t->Distance + 1);
visited.Insert(succ);
queue.Push(succ);
}