Permalink
Browse files

added assert to entity:draw()

  • Loading branch information...
1 parent bf85fc1 commit 70ecbfc7c77c97464f1c409b3ad622dc126dab9c @Textmode Textmode committed Aug 28, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 entity.lua
View
@@ -82,6 +82,8 @@ function _M:testcollision(e)
end
function _M:draw()
+ assert(self, "We have no self, so I really don't know how you expect this to work.")
+
local tau = math.pi*2
local hpratio = self.shield / self.shieldmax
local lg = love.graphics

0 comments on commit 70ecbfc

Please sign in to comment.