-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
Conversation
Did you forget to push your changes? |
Indeed, gonna push it in a sec |
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. |
Thanks for addressing all reviews and the fix itself |
@@ -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)); |
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.
The order of evaluation of arguments is unspecified. That leads to #3895.
Resolves #3738, #3778