From 4d3438aeed1bac581fefd720355633139e297b73 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 21 Apr 2016 18:08:36 +0100 Subject: [PATCH] fixed undeclared yaw variable --- api.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.lua b/api.lua index 93f8f40..292a847 100644 --- a/api.lua +++ b/api.lua @@ -1115,6 +1115,8 @@ end -- execute current state (stand, walk, run, attacks) local do_states = function(self, dtime) + local yaw = 0 + if self.state == "stand" then if math.random(1, 4) == 1 then