]> git.vomp.tv Git - vompclient-marten.git/commitdiff
Fix segfault when pressing ok with no entries
authorChris Tallon <chris@vomp.tv>
Fri, 29 Dec 2006 17:42:35 +0000 (17:42 +0000)
committerChris Tallon <chris@vomp.tv>
Fri, 29 Dec 2006 17:42:35 +0000 (17:42 +0000)
wselectlist.cc

index c01eff7f217a9374c368d94ee9700f3139a14e32..796042fe3d981bea922bf1cc4ac53e5d56e4a995 100644 (file)
@@ -217,6 +217,7 @@ int WSelectList::getCurrentOption()
 
 ULONG WSelectList::getCurrentOptionData()
 {
+  if (!options.size()) return 0;
   return options[selectedOption].data;
 }