Fix smogon plugin build crash