diff --git a/library/modules/EventManager.cpp b/library/modules/EventManager.cpp index 4020cc9d5..9e356269a 100644 --- a/library/modules/EventManager.cpp +++ b/library/modules/EventManager.cpp @@ -834,7 +834,7 @@ static void manageReportEvent(color_ostream& out) { static df::unit_wound* getWound(df::unit* attacker, df::unit* defender) { for ( size_t a = 0; a < defender->body.wounds.size(); a++ ) { df::unit_wound* wound = defender->body.wounds[a]; - if ( wound->age <= 1 && wound->unit_id == attacker->id ) { + if ( wound->age <= 1 && wound->attacker_unit_id == attacker->id ) { return wound; } } diff --git a/library/xml b/library/xml index 5a5e31233..37a4d58e2 160000 --- a/library/xml +++ b/library/xml @@ -1 +1 @@ -Subproject commit 5a5e31233b8714702fa2bd686d06e8e7f707d42d +Subproject commit 37a4d58e27f37639881723f3c56c00724f94aad7