Divide-by-zero error when no player starts

Issue #328 open
Krzysixxx created an issue

If there aren’t any player starts (at least in an UWMF map), there is a divide-by-zero error in gamemap.cpp, in GameMap::GetPlayerSpawn, line 386:

unsignd int alt = player % playerStarts.CountUsed();

The expected behavior would be to show a proper message and crash (quit?) cleanly.

Comments (1)

  1. Log in to comment