mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2024-11-14 16:40:57 +00:00
Fix video menu crash.
This commit is contained in:
parent
2d4e98a910
commit
f4ecad03b7
2 changed files with 8 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
|||
*.filters
|
||||
*.plg
|
||||
*.opt
|
||||
*.opensdf
|
||||
.vs/
|
||||
debug/
|
||||
debugaxp/
|
||||
|
|
|
@ -811,7 +811,13 @@ void Menu_Draw (menuframework_s *menu)
|
|||
min[0] -= SCR_ScaledVideo(len*MENU_FONT_SIZE - LCOLUMN_OFFSET*2);
|
||||
}
|
||||
|
||||
//len = strlen(spin->itemnames[spin->curvalue]);
|
||||
|
||||
if (spin->curvalue >= 0) //BC 6-15-2020 crash fix if curvalue is < 0
|
||||
len = strlen(spin->itemnames[spin->curvalue]);
|
||||
else
|
||||
len = 3;
|
||||
|
||||
max[0] += SCR_ScaledVideo(len*MENU_FONT_SIZE);
|
||||
|
||||
type = MENUITEM_ROTATE;
|
||||
|
|
Loading…
Reference in a new issue