Skip to content

Commit

Permalink
CraterCrashGH-444 Make MacOS happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Jul 9, 2024
1 parent 9a47d0a commit 0d66a67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/script/function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ bool OScriptFunction::resize_argument_list(size_t p_new_size)
_method.arguments.resize(p_new_size);
for (size_t i = current_size; i < p_new_size; i++)
{
_method.arguments[i].name = vformat("arg%d", i + 1);
_method.arguments[i].name = "arg" + itos(i + 1);
_method.arguments[i].type = Variant::NIL;
_method.arguments[i].usage = PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_NIL_IS_VARIANT;
}
Expand Down
3 changes: 2 additions & 1 deletion src/script/nodes/constants/constants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ void OScriptNodeGlobalConstant::allocate_default_pins()
{
EnumInfo ei = ExtensionDB::get_global_enum_by_value(_constant_name);
if (ei.values.is_empty())
{
ERR_FAIL_MSG("Failed to locate enum for " + _constant_name);

}
Ref<OScriptNodePin> constant = create_pin(PD_Output, PT_Data, PropertyUtils::make_enum_class("constant", ei.name));
constant->set_label(_constant_name, false);

Expand Down

0 comments on commit 0d66a67

Please sign in to comment.