diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index a567f5486..3ea4a25e1 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -3197,14 +3197,13 @@ int AActor::GetMissileDamage (int mask, int add) } VMFrameStack stack; VMValue param = this; - VMReturn results[2]; + VMReturn result; - int amount, calculated = false; + int amount; - results[0].IntAt(&amount); - results[1].IntAt(&calculated); + result.IntAt(&amount); - if (stack.Call(DamageFunc, ¶m, 1, results, 2) < 1) + if (stack.Call(DamageFunc, ¶m, 1, &result, 1) < 1) { // No results return 0; }