Fix: fmt's {:#04X} yields '0X00', not '0x0000'

Technically the 0X vs 0x is not a big problem, just not pretty. However, the
length also including the 0x results in unexpected behaviour, so it probably
better to not use it.
This commit is contained in:
Rubidium
2023-04-20 17:00:46 +02:00
committed by rubidium42
parent 27b4b5d0a0
commit 7b539fa7c9
5 changed files with 82 additions and 82 deletions

View File

@@ -109,7 +109,7 @@ void ResetGenericCallbacks()
void AddGenericCallback(uint8 feature, const GRFFile *file, const SpriteGroup *group)
{
if (feature >= lengthof(_gcl)) {
GrfMsg(5, "AddGenericCallback: Unsupported feature {:#02X}", feature);
GrfMsg(5, "AddGenericCallback: Unsupported feature 0x{:02X}", feature);
return;
}