Permalink
Browse files

the last hitter is bogus at least as often as it is correct

  • Loading branch information...
1 parent 434ccc4 commit 1825b20a9c2212e998d6287ed3381c49f243412e @fizzet fizzet committed Jun 16, 2013
Showing with 0 additions and 4 deletions.
  1. +0 −4 gemrb/core/Scriptable/Actor.cpp
@@ -3816,10 +3816,6 @@ int Actor::Damage(int damage, int damagetype, Scriptable *hitter, int modtype, i
//FIXME: what does original do?
LastDamageType|=damagetype;
Actor *act=NULL;
- if (!hitter) {
- // TODO: check this
- hitter = area->GetActorByGlobalID(LastHitter);
- }
if (hitter) {
if (hitter->Type==ST_ACTOR) {

0 comments on commit 1825b20

Please sign in to comment.