From 0817a156b9888a0b8a2130463836074ae267502b Mon Sep 17 00:00:00 2001 From: Allanis Date: Mon, 10 Mar 2014 15:01:07 +0000 Subject: [PATCH] [Fix] Avoid possible usage of uninitialized data. --- src/ai.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ai.c b/src/ai.c index 1cc0a2c..3ec9f23 100644 --- a/src/ai.c +++ b/src/ai.c @@ -1028,6 +1028,7 @@ static int ai_face(lua_State* L) { } else if(lua_isvector(L, 1)) lv = lua_tovector(L, 1); + else LLUA_INVALID_PARAMETER(); mod = 10;