Hello, I've been running into a little problem lately: the infamous stack level too deep. I know that it occurs due to loops or putting too many methods on a call stack, but I'm not quite sure how to fix it. The error occurs upon F12 reset and refers to these lines:
The error occurs at line 10 here. Thanks for any assistance.
Code:
class Game_Player < Game_Character
attr_accessor :dashing
attr_accessor :stealthing
attr_accessor :last_event_id
unless self.method_defined?(:regi_dashstealth_initialize)
alias regi_dashstealth_initialize initialize
end
def initialize
regi_dashstealth_initialize
@dashing = false
@stealthing = false
@last_event_id = 0
end
end
The error occurs at line 10 here. Thanks for any assistance.