Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capture player by reference in comestible inventory lambdas (#26272)
The lambdas for determining calories and joy for the player in the comestible menu were capturing a copy of the player. With the current map memory bugs, this meant a potentially very large object was being copied several times, every time the comestible menu was displayed, leading to a large delay.
- Loading branch information