Skip to content

Commit

Permalink
invalid scale assert
Browse files Browse the repository at this point in the history
  • Loading branch information
ennorehling committed Feb 1, 2025
1 parent 6c09ce8 commit 2f50340
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/alchemy.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ void scale_effects(unit* u, int n)
else if (u->number > 0) {
uint64_t scale = (uint64_t)data->value * n / u->number;
assert(scale <= INT_MAX);
assert(scale > 0);
data->value = (int) scale;
}
}
Expand Down

0 comments on commit 2f50340

Please sign in to comment.