mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-19 03:57:14 +01:00
Prevent a compilation error in the algorithms header from a missing brace in ForwardElemFunc initializer list.
This commit is contained in:
parent
2cd5054f92
commit
1bf80d76c6
@ -835,7 +835,7 @@ public:
|
||||
* Base constructor.
|
||||
*/
|
||||
ForwardElemFunc(Object & env, Function & func)
|
||||
: mFunc(env.GetVM(), env, func.GetFunc()), mCount(0)
|
||||
: mFunc(env.IsNull() ? func : Function(env.GetVM(), env, func.GetFunc())), mCount(0)
|
||||
{
|
||||
if (mFunc.IsNull())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user