Casting fix seems to be preventing crashing.
This commit is contained in:
parent
03588c848c
commit
d1e86ed445
1 changed files with 2 additions and 2 deletions
|
|
@ -631,8 +631,8 @@ void receive_some_font_info(SDL_Surface * screen)
|
|||
|
||||
show_progress_bar(screen);
|
||||
walk = buf;
|
||||
num_font_families = *walk++;
|
||||
num_font_families += *walk++ << 8u;
|
||||
num_font_families = *(unsigned char *)walk++;
|
||||
num_font_families += *(unsigned char *)walk++ << 8u;
|
||||
#ifdef DEBUG
|
||||
printf("Got %u bytes with %u families.\n", buf_fill, num_font_families);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue