From 6d57ef67c9bda40791622fce14fd97eb3b952826 Mon Sep 17 00:00:00 2001 From: div0 Date: Sun, 31 May 2009 16:41:27 +0000 Subject: [PATCH] fix a tooltip related warning message spam git-svn-id: svn://svn.icculus.org/nexuiz/trunk@6828 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/menu/menu.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/qcsrc/menu/menu.qc b/data/qcsrc/menu/menu.qc index b60992867..2bb4d6b00 100644 --- a/data/qcsrc/menu/menu.qc +++ b/data/qcsrc/menu/menu.qc @@ -317,6 +317,8 @@ entity m_findtooltipitem(entity root, vector pos) it = it.focusedChild; else it = it.itemFromPoint(it, pos); + if(!it) + break; if(it.tooltip) best = it; pos = globalToBox(pos, it.Container_origin, it.Container_size); -- 2.39.2