mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Codechange: Pass avail(able) as reference instead of pointer since they are never nullptr (#12696)
This commit is contained in:
+3
-3
@@ -15,10 +15,10 @@
|
||||
|
||||
#include "safeguards.h"
|
||||
|
||||
/* virtual */ uint32_t TownScopeResolver::GetVariable(uint8_t variable, [[maybe_unused]] uint32_t parameter, bool *available) const
|
||||
/* virtual */ uint32_t TownScopeResolver::GetVariable(uint8_t variable, [[maybe_unused]] uint32_t parameter, bool &available) const
|
||||
{
|
||||
if (this->t == nullptr) {
|
||||
*available = false;
|
||||
available = false;
|
||||
return UINT_MAX;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
|
||||
Debug(grf, 1, "Unhandled town variable 0x{:X}", variable);
|
||||
|
||||
*available = false;
|
||||
available = false;
|
||||
return UINT_MAX;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user