Fixed a syntax error in if statement in engine class.