mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix an invalid null deref check in the slider code.
This commit is contained in:
parent
9efaf819dc
commit
af79d2cb38
1 changed files with 1 additions and 1 deletions
|
@ -1491,7 +1491,7 @@ float Item_Slider_ThumbPosition(itemDef_t *item) {
|
|||
x = item->window.rect.x;
|
||||
}
|
||||
|
||||
if (editDef == NULL && item->cvar) {
|
||||
if (!editDef || !item->cvar) {
|
||||
return x;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue