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

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.

Code:
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
https://gogolab.com/
woodslanding is offline   Reply With Quote