diff --git a/src/legacy/api/EntityAPI.cpp b/src/legacy/api/EntityAPI.cpp index 1e725a77..a7e38b5d 100644 --- a/src/legacy/api/EntityAPI.cpp +++ b/src/legacy/api/EntityAPI.cpp @@ -1810,12 +1810,12 @@ Local McClass::explode(const Arguments& args) { return Local(); break; } - auto source = EntityClass::extract(args[beginIndex + 0]); // Can be nullptr + auto source = EntityClass::extract(args[beginIndex]); // Can be nullptr if (args.size() == 5 || args.size() == 8) { CHECK_ARG_TYPE(args[beginIndex + 1], ValueKind::kNumber); + CHECK_ARG_TYPE(args[beginIndex + 2], ValueKind::kBoolean); CHECK_ARG_TYPE(args[beginIndex + 3], ValueKind::kBoolean); - CHECK_ARG_TYPE(args[beginIndex + 4], ValueKind::kBoolean); float radius = args[beginIndex + 1].asNumber().toFloat(); bool isDestroy = args[beginIndex + 2].asBoolean().value();