Fixed the stacktrace issue with different GameModes for AISwarmSpawn