Skip to content
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

GetResultItemProperty usage unclear #637

Open
zanthous opened this issue Aug 7, 2024 · 0 comments
Open

GetResultItemProperty usage unclear #637

zanthous opened this issue Aug 7, 2024 · 0 comments

Comments

@zanthous
Copy link

zanthous commented Aug 7, 2024

I see now that in the tests file the function gets called twice to get the intended result, but this was very confusing. Could this maybe be explained somewhere like in the summary comment?

string ValueBuffer;
uint ValueBufferSize = 0;
bool ret = SteamInventory.GetResultItemProperty(m_SteamInventoryResult, 0, null, out ValueBuffer, ref ValueBufferSize);
if(ret) {
    ret = SteamInventory.GetResultItemProperty(m_SteamInventoryResult, 0, null, out ValueBuffer, ref ValueBufferSize);
}
@zanthous zanthous changed the title GetResultItemProperty GetResultItemProperty usage unclear Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant