[Mono] Fixed "expression did not evaluate to a constant" compiler error for visual studio.
This commit is contained in:
parent
ad5ac052a4
commit
72fe70272d
|
@ -230,11 +230,12 @@ String GDMonoMethod::get_signature_desc(bool p_namespaces) const {
|
|||
}
|
||||
|
||||
void GDMonoMethod::get_parameter_names(Vector<StringName> &names) const {
|
||||
const char *_names[params_count];
|
||||
mono_method_get_param_names(mono_method, _names);
|
||||
const char *_names = memnew_arr(char, params_count);
|
||||
mono_method_get_param_names(mono_method, &_names);
|
||||
for (int i = 0; i < params_count; ++i) {
|
||||
names.push_back(StringName(_names[i]));
|
||||
names.push_back(StringName(&_names[i]));
|
||||
}
|
||||
memdelete_arr(_names);
|
||||
}
|
||||
|
||||
void GDMonoMethod::get_parameter_types(Vector<ManagedType> &types) const {
|
||||
|
|
Loading…
Reference in New Issue