summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-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 a07b46280..b213cfd79 100644
--- a/npc/functions/math.txt
+++ b/npc/functions/math.txt
@@ -86,7 +86,7 @@ function script ponderate_avg {
.@s2=getarg(3);
.@h1=.@a1*.@s1;
- .@h2=.@a1*.@s1;
+ .@h2=.@a2*.@s2;
.@dd=.@s1+.@s2;
return (.@h1+.@h2)/.@dd;