summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStreusel <streusel@gravity.co.kr>2015-05-16 02:30:06 -0700
committerStreusel <streusel@gravity.co.kr>2015-05-16 02:30:06 -0700
commit48ec81d3f3b7dfbcd2de1f1ba7276031fd61051f (patch)
tree9a8ec4f6dcc9e405681ff37bec71afafef34a2c7
parentc9f845f4518fc3626d9bc2f7166db5a2ac620a57 (diff)
downloadhercules-48ec81d3f3b7dfbcd2de1f1ba7276031fd61051f.tar.gz
hercules-48ec81d3f3b7dfbcd2de1f1ba7276031fd61051f.tar.bz2
hercules-48ec81d3f3b7dfbcd2de1f1ba7276031fd61051f.tar.xz
hercules-48ec81d3f3b7dfbcd2de1f1ba7276031fd61051f.zip
Fix log10() function actually using log10. Used natural log before.
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 2ad8bcb25..99d6f9088 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -15482,7 +15482,7 @@ BUILDIN(log10)
{
double i, a;
i = script_getnum(st,2);
- a = log(i);
+ a = log10(i);
script_pushint(st,(int)a);
return true;
}