-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
GuiListView()
always returns 0
#448
Comments
GuiListViewEx initializes result value at the top, here Lines 3389 to 3391 in 54bff64
and then it just returns it at the very end, here Lines 3532 to 3534 in 54bff64
but it does not set it anywhere, also there are no early returns from this function, it returns 0 in all cases. There are a lot of functions that work this way: This is probably for Forward/Backward Compatibility and for consistency with other functions. All those mentioned functions are usually never expect to fail nor to execute abnormally, and most of them return values by pointer. For example, GuiListView returns its internal state with |
@terenctbrobots Yeah, return values should be reviewed: #402 |
Currently with this code:
m_GameObjectSelect is always 0. Shouldnt it be > 0?
The text was updated successfully, but these errors were encountered: