Browse Source

control: add BUGFIX for loop termination in DrawGoldSplit

pull/5295/head
Robin Eklind 5 years ago committed by Anders Jenbo
parent
commit
b13c002c14
  1. 1
      Source/control.cpp

1
Source/control.cpp

@ -2618,6 +2618,7 @@ void DrawGoldSplit(int amount)
PrintGameStr(388, 140, tempstr, COL_WHITE);
}
if (amount > 0) {
// BUGFIX: loop condition should be `tempstr[i] != 0`, not `i < tempstr[i]`.
for (i = 0; i < tempstr[i]; i++) {
BYTE c = fontframe[gbFontTransTbl[(BYTE)tempstr[i]]];
screen_x += fontkern[c] + 1;

Loading…
Cancel
Save