mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Fix DebuggerMarshalls errors while profiling
Fixed check for array size before func_size: when func_size is 0 there's only 1 entry left and not 3.
This commit is contained in:
parent
50db0e66ac
commit
d346c30269
@ -171,7 +171,7 @@ bool DebuggerMarshalls::ServersProfilerFrame::deserialize(const Array &p_arr) {
|
||||
}
|
||||
servers.push_back(si);
|
||||
}
|
||||
CHECK_SIZE(p_arr, idx + 3, "ServersProfilerFrame");
|
||||
CHECK_SIZE(p_arr, idx + 1, "ServersProfilerFrame");
|
||||
int func_size = p_arr[idx];
|
||||
idx += 1;
|
||||
CHECK_SIZE(p_arr, idx + func_size, "ServersProfilerFrame");
|
||||
|
Loading…
Reference in New Issue
Block a user