summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-04-21 18:08:36 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-04-21 18:08:36 +0100
commit4d3438aeed1bac581fefd720355633139e297b73 (patch)
treed516d14acecff01a9096ff949d62621a760b3091
parent30e11573925007f413d75be90a2de40ae9089e63 (diff)
fixed undeclared yaw variable
-rw-r--r--api.lua2
1 files changed, 2 insertions, 0 deletions
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