From: terencehill Date: Sat, 25 Jul 2015 14:09:46 +0000 (+0200) Subject: Fix compilation :/ X-Git-Tag: xonotic-v0.8.1~11^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=72c8e118fe8f76a9ec1aab21a56c113d6d9d636a;p=xonotic%2Fxonotic-data.pk3dir.git Fix compilation :/ --- diff --git a/qcsrc/menu/item/listbox.qc b/qcsrc/menu/item/listbox.qc index ad80d18ad..f90e3b901 100644 --- a/qcsrc/menu/item/listbox.qc +++ b/qcsrc/menu/item/listbox.qc @@ -85,9 +85,9 @@ ENDCLASS(ListBox) #ifdef IMPLEMENTATION void ListBox_scrollToItem(entity me, int i) { - // scroll doesn't work properly until iHeight is set to the correct value + // scroll doesn't work properly until itemHeight is set to the correct value // at the first resizeNotify call - if(me.iHeight == 1) // initial temporary value of iHeight is 1 + if(me.itemHeight == 1) // initial temporary value of itemHeight is 1 { me.needScrollToItem = i; return;