fix scriptengine::basestats min/max gen check