Merge pull request #90315 from Faless/mp/clean_dead_alloc

[MP] Fix dead code doing unnecessary allocation
This commit is contained in:
Rémi Verschelde 2024-04-08 11:21:43 +02:00
commit d56fb753a4
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -266,10 +266,6 @@ Error MultiplayerAPI::decode_and_decompress_variants(Vector<Variant> &r_variants
return OK;
}
Vector<Variant> args;
Vector<const Variant *> argp;
args.resize(argc);
for (int i = 0; i < argc; i++) {
ERR_FAIL_COND_V_MSG(r_len >= p_len, ERR_INVALID_DATA, "Invalid packet received. Size too small.");