Fix bug in gfx_get_string_width

This commit is contained in:
ZedThree committed 2014-05-31 16:40:40 +02:00
1 parent 67b7ca8d1e
commit 504ce150ea
1 file changed
+2 -2
+2 -2
View File
@@ -1041,6 +1041,7 @@ void gfx_redraw_screen_rect(short left, short top, short right, short bottom)
}
/**
* Return the width of the string in buffer
*
* rct2: 0x006C2321
* buffer (esi)
@@ -1050,9 +1051,8 @@ int gfx_get_string_width(char *buffer)
int base;
int width;
char curr_char;
uint8 curr_char;
curr_char = 0;
base = RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_FONT_SPRITE_BASE, uint16);
width = 0;