You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
566 B
Diff
15 lines
566 B
Diff
4 years ago
|
diff --git a/apps/openmw-mp/Script/ScriptFunction.cpp b/apps/openmw-mp/Script/ScriptFunction.cpp
|
||
|
index 9a6d64206..d313a6be5 100644
|
||
|
--- a/apps/openmw-mp/Script/ScriptFunction.cpp
|
||
|
+++ b/apps/openmw-mp/Script/ScriptFunction.cpp
|
||
|
@@ -40,6 +40,8 @@ boost::any ScriptFunction::Call(const vector<boost::any> &args)
|
||
|
|
||
|
if (def.length() != args.size())
|
||
|
throw runtime_error("Script call: Number of arguments does not match definition");
|
||
|
+ if (script_type == SCRIPT_CPP)
|
||
|
+ fCpp();
|
||
|
#if defined (ENABLE_LUA)
|
||
|
else if (script_type == SCRIPT_LUA)
|
||
|
{
|
||
|
|