From dbde0971ef7f508161ab5851d1540921a2d76dc4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 6 Nov 2016 10:28:01 +0100 Subject: [PATCH] - removed the second 'calculated' return value from the damage function call in GetMissileDamage as it is no longer needed or even code being generated for. --- src/p_mobj.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; }