-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix arg count checks in SceneDebugger
#79655
Fix arg count checks in SceneDebugger
#79655
Conversation
d30d13f
to
3273b81
Compare
SceneDebugger
SceneDebugger
godot/scene/debugger/scene_debugger.cpp Lines 179 to 187 in 0c2144d
Should for p_args.size() == 2 the call be changed to live_editor->_res_call_func(p_args[0], p_args[1], nullptr, 0) or is it fine as is?
|
Yes, I think it should be something like:
|
3273b81
to
95809e5
Compare
SceneDebugger
SceneDebugger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for looking into this 🏆
Thanks! |
Cherry-picked for 4.1.2. |
In #58929 args passed to
SceneDebugger::parse_message
were changed to no longer be fixed size. However:p_msg == "live_node_call"
case the error was removed, instead of modified to handle variadic arg count.p_msg == "live_res_call"
case the error was unchanged, instead of modified to handle variadic arg count.This PR fixes error checking for both cases.
Fixes #79616.