Skip to content

Commit

Permalink
GH-579 Raise breakpoint when input action has no action name
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Jul 23, 2024
1 parent 3ed5a3e commit bf7d58a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/script/nodes/input/input_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ class OScriptNodeInputActionInstance : public OScriptNodeInstance
return -1 | STEP_FLAG_END;
}

if (_action_name.is_empty())
{
p_context.set_error(GDEXTENSION_CALL_ERROR_INVALID_ARGUMENT, "An action name must be specified.");
return -1 | STEP_FLAG_END;
}

bool result = false;
switch (_mode)
{
Expand Down

0 comments on commit bf7d58a

Please sign in to comment.