button: return 0 on index with unknown elem

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-26 19:43:54 +02:00
parent 9b4cd23539
commit 5476665ba2
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ luaA_button_index(lua_State *L)
lua_pushnumber(L, button->button);
break;
default:
break;
return 0;
}
return 1;