diff --git a/src/as_log.cpp b/src/as_log.cpp index d857ecc..380872a 100644 --- a/src/as_log.cpp +++ b/src/as_log.cpp @@ -16,7 +16,7 @@ bool register_log(asIScriptEngine* e) bool success = true; i32 r; - AS_CHECK(RegisterGlobalFunction("void log_error(const string&in)", asFUNCTION(log), asCALL_CDECL)); + AS_CHECK(RegisterGlobalFunction("void log_error(const string&in)", asFUNCTION(log_error), asCALL_CDECL)); return success; }