View Single Post
Old 05-31-2019, 12:16 PM   #499
Human being with feelings
woodslanding's Avatar
Join Date: Mar 2007
Location: Denver, CO
Posts: 410

yeah, okay that looks good.

I'm having a problem with self being nil the first time onupdate gets called.... but I see you have 'self' right there... hmmm.

function GUI.IControl:onupdate()
    self.updateCount = (self.updateCount + 1) % self.updateRate --line 142
    if self.updateCount == 0 then
Class - IControl.lua:142: attempt to index a nil value (local 'self')
eric moon
Very Stable Genius
woodslanding is offline   Reply With Quote