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

Fix CVector optional arguments - #3738 #3782

Merged
merged 12 commits into from
Dec 21, 2024

Conversation

TracerDS
Copy link
Contributor

@TracerDS TracerDS commented Oct 8, 2024

Resolves #3738, #3778

Shared/sdk/CVector.h Show resolved Hide resolved
Shared/sdk/CVector.h Outdated Show resolved Hide resolved
Shared/sdk/CVector.h Outdated Show resolved Hide resolved
@TheNormalnij
Copy link
Member

Did you forget to push your changes?

@TracerDS
Copy link
Contributor Author

Did you forget to push your changes?

Indeed, gonna push it in a sec

@tederis
Copy link
Member

tederis commented Oct 13, 2024

Why did you marked conversations resolved without corresponding changes in the code?

@TracerDS
Copy link
Contributor Author

Why did you marked conversations resolved without corresponding changes in the code?

What do you mean? I updated the code according to your reviews

@tederis
Copy link
Member

tederis commented Oct 13, 2024

Why did you marked conversations resolved without corresponding changes in the code?

What do you mean? I updated the code according to your reviews

Hmm, that's strange. I thought I saw the files untouched. I'm sorry.

@TracerDS TracerDS requested a review from tederis November 13, 2024 11:22
@Dutchman101
Copy link
Member

Thanks for addressing all reviews and the fix itself

@Dutchman101 Dutchman101 merged commit 6a70cf7 into multitheftauto:master Dec 21, 2024
6 checks passed
@@ -561,7 +561,7 @@ struct CLuaFunctionParserBase
else if constexpr (std::is_same_v<T, CVector>)
{
if (lua_isnumber(L, index))
return {PopUnsafe<float>(L, index), PopUnsafe<float>(L, index), PopUnsafe<float>(L, index)};
return CVector(PopUnsafe<float>(L, index), PopUnsafe<float>(L, index), PopUnsafe<float>(L, index));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order of evaluation of arguments is unspecified. That leads to #3895.

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

Successfully merging this pull request may close these issues.

createBuilding optional arguments not handled correctly
4 participants