Fix exit tunnel sequence
The index and the value were transposed, and since both were integer
types, the type system was unable to warn that the new code was
incorrect. Swap the variables to bind as intended.
Reported-by: Donkyhotay <https://github.com/dxx-rebirth/dxx-rebirth/issues/544>
Fixes: de4efc4f46
("Qualify more uses of shared_segment members")
This commit is contained in:
parent
1fc8663eff
commit
d7560843b0
|
@ -1339,7 +1339,7 @@ static std::pair<icsegidx_t, sidenum_fast_t> find_exit_segment_side(fvcsegptridx
|
|||
{
|
||||
range_for (const auto &&segp, vcsegptridx)
|
||||
{
|
||||
for (const auto &&[sidenum, child_segnum] : enumerate(segp->shared_segment::children))
|
||||
for (const auto &&[child_segnum, sidenum] : enumerate(segp->shared_segment::children))
|
||||
{
|
||||
if (child_segnum == segment_exit)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue