Fix an invalid null deref check in the slider code.

This commit is contained in:
Ensiform 2014-05-29 22:27:00 -05:00 committed by Zack Middleton
parent 9efaf819dc
commit af79d2cb38

View file

@ -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;
}