From 04c6c5ca55989ed07181ebdfbdb70bcde4546267 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sat, 24 Jan 2015 14:17:47 +0100 Subject: [PATCH] Fix missing 'victim' replace in ALoreShot code. --- src/g_strife/a_loremaster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_strife/a_loremaster.cpp b/src/g_strife/a_loremaster.cpp index 38cadab34..d984bbdd3 100644 --- a/src/g_strife/a_loremaster.cpp +++ b/src/g_strife/a_loremaster.cpp @@ -30,7 +30,7 @@ int ALoreShot::DoSpecialDamage (AActor *victim, int damage, FName damagetype) thrust.Z = float(target->z - victim->z); thrust.MakeUnit(); - thrust *= float((255*50*FRACUNIT) / (victim->Mass ? target->Mass : 1)); + thrust *= float((255*50*FRACUNIT) / (victim->Mass ? victim->Mass : 1)); victim->velx += fixed_t(thrust.X); victim->vely += fixed_t(thrust.Y);