Skip to content

Commit a84b00b

Browse files
Improve mvalue constructor call
1 parent 859b3d3 commit a84b00b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/src/altv-c-api/mvalue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void MValue_CreateDict(alt::MValue* val, const char** keys, uint64_t size, alt::
171171
}
172172

173173
void MValue_CreateFunction(alt::MValueFunction::Invoker* val, alt::MValue &mValue) {
174-
mValue = alt::MValue(val);
174+
mValue = alt::MValue(alt::MValue::Function{ val });
175175
}
176176

177177
void MValue_CallFunction(alt::MValue* mValue, alt::MValue* args, int32_t size, alt::MValue &result) {

0 commit comments

Comments
 (0)