fixed undeclared yaw variable

This commit is contained in:
TenPlus1 2016-04-21 18:08:36 +01:00
parent 30e1157392
commit 4d3438aeed

View File

@ -1115,6 +1115,8 @@ end
-- execute current state (stand, walk, run, attacks) -- execute current state (stand, walk, run, attacks)
local do_states = function(self, dtime) local do_states = function(self, dtime)
local yaw = 0
if self.state == "stand" then if self.state == "stand" then
if math.random(1, 4) == 1 then if math.random(1, 4) == 1 then