mirror of https://github.com/OpenTTD/OpenTTD.git
![]() Change the signature of Swap() to be less error prone, i.e. pass the variables to be swapped by reference instead of passing pointers to the variables. Just do Swap(x, y) instead of Swap(&x, &y). This prevents accidents when the variables are pointers. |
||
---|---|---|
.. | ||
default | ||
trolly | ||
ai.cpp | ||
ai.h |