File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1810,12 +1810,12 @@ Local<Value> McClass::explode(const Arguments& args) {
18101810 return Local<Value>();
18111811 break ;
18121812 }
1813- auto source = EntityClass::extract (args[beginIndex + 0 ]); // Can be nullptr
1813+ auto source = EntityClass::extract (args[beginIndex]); // Can be nullptr
18141814
18151815 if (args.size () == 5 || args.size () == 8 ) {
18161816 CHECK_ARG_TYPE (args[beginIndex + 1 ], ValueKind::kNumber );
1817+ CHECK_ARG_TYPE (args[beginIndex + 2 ], ValueKind::kBoolean );
18171818 CHECK_ARG_TYPE (args[beginIndex + 3 ], ValueKind::kBoolean );
1818- CHECK_ARG_TYPE (args[beginIndex + 4 ], ValueKind::kBoolean );
18191819
18201820 float radius = args[beginIndex + 1 ].asNumber ().toFloat ();
18211821 bool isDestroy = args[beginIndex + 2 ].asBoolean ().value ();
You can’t perform that action at this time.
0 commit comments