Ver Fonte

Fix crash;

bjorn há 10 anos atrás
pai
commit
c47c8ce95b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      dinoland.lua

+ 1 - 1
dinoland.lua

@@ -175,7 +175,7 @@ function Dinoland:update()
     if not dactyl then break end
     if not dactyl then break end
     dactyl.x = dactyl.x - dactyl.speed * ls.tickrate
     dactyl.x = dactyl.x - dactyl.speed * ls.tickrate
     if dactyl.x < -100 then
     if dactyl.x < -100 then
-      table.remove(self.dactyl, i)
+      table.remove(self.dactyls, i)
     else
     else
       i = i - 1
       i = i - 1
     end
     end