lib/cyberarm_engine/engine.rb in cyberarm_engine-0.8.1 vs lib/cyberarm_engine/engine.rb in cyberarm_engine-0.9.0
- old
+ new
@@ -60,10 +60,10 @@
def push_state(klass, options={})
if klass.instance_of?(klass.class) && defined?(klass.options)
@states << klass
else
@states << klass.new(options) if child_of?(klass, GameState)
- @states << klass.new if child_of?(klass, Container)
+ @states << klass.new if child_of?(klass, Element::Container)
end
end
private def child_of?(input, klass)
input.ancestors.detect {|c| c == klass}
\ No newline at end of file