mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-15 17:02:05 +00:00
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:
parent
39d7fa0605
commit
2adf5782b9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue