mirror of
https://github.com/risingPhil/libpokemegb.git
synced 2026-04-26 02:02:32 -05:00
Fix crash with Gen1GameReader::setTrainerMoney
This commit is contained in:
parent
4ca381bb61
commit
9a80247c30
|
|
@ -89,7 +89,7 @@ static void encodeBigEndianBinaryCodedDecimalNumber(uint32_t value, uint8_t *out
|
|||
value /= 10;
|
||||
const uint8_t upperNibble = value % 10;
|
||||
value /= 10;
|
||||
outBcdData[i] = (upperNibble << 4) | lowerNibble;
|
||||
outBcdData[i / 2] = (upperNibble << 4) | lowerNibble;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user