forked from github/server
CID 22468 Division or modulo by zero
This commit is contained in:
parent
1f055b3175
commit
7efda5f967
|
@ -91,7 +91,7 @@ static const char *make_names(const char *monster, int *num_postfix,
|
||||||
uu = rng_int() % *num_name;
|
uu = rng_int() % *num_name;
|
||||||
|
|
||||||
/* nur 50% aller Namen haben "Nach-Teil", wenn kein Vor-Teil */
|
/* nur 50% aller Namen haben "Nach-Teil", wenn kein Vor-Teil */
|
||||||
if (uv >= *num_prefix) {
|
if (*num_postfix > 0 && uv >= *num_prefix) {
|
||||||
un = rng_int() % *num_postfix;
|
un = rng_int() % *num_postfix;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue