1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-18 00:08:25 +01:00

Fix crash when blinktimer is nil

This commit is contained in:
LeMagnesium 2015-03-12 20:47:44 +01:00
parent a660b2917d
commit c76bc7e019

View File

@ -506,7 +506,7 @@ function mobs:register_mob(name, def)
else
self.set_velocity(self, 0)
self.timer = self.timer + dtime
self.blinktimer = self.blinktimer + dtime
self.blinktimer = (self.blinktimer + dtime) or nil
if self.blinktimer > 0.2 then
self.blinktimer = self.blinktimer - 0.2
if self.blinkstatus then