mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-02 14:01:40 +00:00
Prevent a divion by zero
This commit is contained in:
parent
12ce981d64
commit
4ece3714aa
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ DoRespawn(edict_t *ent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
choice = randk() % count;
|
choice = count ? randk() % count : 0;
|
||||||
|
|
||||||
for (count = 0, ent = master; count < choice; ent = ent->chain, count++)
|
for (count = 0, ent = master; count < choice; ent = ent->chain, count++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue