mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +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;
|
x = item->window.rect.x;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (editDef == NULL && item->cvar) {
|
if (!editDef || !item->cvar) {
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue