abort occurs when processing unknown unit type in map file in stratagus 2.2.6

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

Bug Description

In stargus map (2) River Crossing there is a unit type called "Bengalaas-(Jungle-Critter)". An abort and core dump occurs when trying to create this type of unit. No DefineUnitType exists for this type in any lua file. The attached patch file prevents an abort when any unknown unit type is processed.

Tags: patch

Related branches

Revision history for this message
Neil Tan (emtneutrino) wrote :
Revision history for this message
Joris Dauphin (joris-dauphin) wrote :

revision 8210 avoid the abort/core dump with a lua_error.

Changed in stratagus:
status: New → Fix Committed
Pali (pali)
Changed in stratagus:
assignee: nobody → Joris Dauphin (joris-dauphin)
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

Remote bug watches

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