summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/math.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/math.txt b/npc/functions/math.txt
index a7be729a3..3c2c935d9 100644
--- a/npc/functions/math.txt
+++ b/npc/functions/math.txt
@@ -53,7 +53,7 @@ function script log2 {
if (2**.@i == .@v) {
.@ok=1;
// inexact match, or limit exceeded
- } if (2**.@i >= .@v || .@i > 20) {
+ } else if (2**.@i >= .@v || .@i > 20) {
.@ok=1;
.@i-=1; // round down
// not yet