segfault in unit.cpp function HitUnit in stratagus 2.2.6

Bug #911062 reported by Neil Tan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stratagus
Fix Released
Undecided
Pali

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 2.2.5.5. Can a burning building call for help with AiHelpMe???

Tags: patch

Related branches

Revision history for this message
Neil Tan (emtneutrino) wrote :
description: updated
Pali (pali)
tags: added: patch
Changed in stratagus:
status: New → Fix Committed
assignee: nobody → Pali (pali)
Pali (pali)
Changed in stratagus:
milestone: none → 2.2.7
Pali (pali)
Changed in stratagus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.