Fix Pop() method of SmallStack/StationIDStack.

Fixes 8deac54c
This commit is contained in:
Jonathan G Rennison
2017-01-02 19:22:36 +00:00
parent 51d4a6b14d
commit a71a6ecec2

View File

@@ -211,7 +211,9 @@ public:
_pool.Destroy(this->next);
} else {
--popped.branch_count;
this->Branch();
if (popped.next != Tmax_size) {
++(_pool.Get(popped.next).branch_count);
}
}
/* Accessing popped here is no problem as the pool will only set
* the validity flag, not actually delete the item, on Destroy().