- 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.

This commit is contained in:
Christoph Oelckers 2016-11-06 10:28:01 +01:00
parent c3ae560289
commit dbde0971ef

View file

@ -3197,14 +3197,13 @@ int AActor::GetMissileDamage (int mask, int add)
} }
VMFrameStack stack; VMFrameStack stack;
VMValue param = this; VMValue param = this;
VMReturn results[2]; VMReturn result;
int amount, calculated = false; int amount;
results[0].IntAt(&amount); result.IntAt(&amount);
results[1].IntAt(&calculated);
if (stack.Call(DamageFunc, &param, 1, results, 2) < 1) if (stack.Call(DamageFunc, &param, 1, &result, 1) < 1)
{ // No results { // No results
return 0; return 0;
} }