segfault in unit.cpp function HitUnit in stratagus 2.2.6

Bug #911062 reported by Neil Tan on 2012-01-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

A segfault occurs when a building is "attacked" by fire in file "unit.cpp" function "HitUnit" when the variable argument "attacker" is NULL. This happens when called from file "actions.cpp" function "HandleRegenerations". The call made by "HandleRegenerations" is "HitUnit(NoUnitP, unit, unit.Type->BurnDamageRate" where NoUnitP is NULL. A patch is included. This doesn't occur in stratagus Can a burning building call for help with AiHelpMe???

Related branches

Neil Tan (emtneutrino) wrote :
description: updated
Pali (pali) on 2012-01-07
tags: added: patch
Changed in stratagus:
status: New → Fix Committed
assignee: nobody → Pali (pali)
Pali (pali) on 2012-04-19
Changed in stratagus:
milestone: none → 2.2.7
Pali (pali) on 2012-08-20
Changed in stratagus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers