mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-16 03:06:45 -04:00
fix buffer overflow in chargen + CRT effect
This commit is contained in:
parent
f169aa5071
commit
ebcd71ece8
5 changed files with 48 additions and 5 deletions
|
@ -454,7 +454,7 @@ static char select_xicht(int id,int xa,int ya,int xr,int yr)
|
|||
def_handle(H_XICHTY+cur_edited,s,pcx_8bit_decomp,SR_BGRAFIKA);
|
||||
sprintf(s,CHAR_NAME,k);
|
||||
def_handle(H_POSTAVY+cur_edited,s,pcx_8bit_decomp,SR_BGRAFIKA);
|
||||
for(j=0;j<MAX_XICHTS;j++) if (postavy[j].used) disable[postavy[j].xicht]=1;
|
||||
for(j=0;j<POCET_POSTAV;j++) if (postavy[j].used) disable[postavy[j].xicht]=1;
|
||||
error_text=NULL;
|
||||
bott_draw(1);
|
||||
redraw_generator(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue