URL:
  <http://gna.org/bugs/?15514>

                 Summary: [unstore_unit] on non-extant variable -> crash box
"invalid unit type ''"
                 Project: Battle for Wesnoth
            Submitted by: None
            Submitted on: Monday 03/01/2010 at 02:38 CET
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: [email protected]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.13
        Operating System: Lunux

    _______________________________________________________

Details:

This happens when [store_unit] matched 0.

This used to be safe until two betas ago. Most of the time [store_unit] is on
a filter guaranteed to match 0 or 1 units so lots of code uses [unstore_unit]
without an explicit for-each.

The reality is [unstore_unit] and [set_variable] should probably be changed
to vector but too much of a breaking change for now.

Patch: do not crash on empty unstore_unit.

The_Tunnel.gz is a savegame from Story of the Wose where the role-based
recall matched zilch.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Monday 03/01/2010 at 02:38 CET  Name: The_Tunnel.gz  Size: 7kB   By:
None

<http://gna.org/bugs/download.php?file_id=8336>
-------------------------------------------------------
Date: Monday 03/01/2010 at 02:38 CET  Name:
wesnoth-unstore-unit-empty-variable.patch  Size: 352B   By: None

<http://gna.org/bugs/download.php?file_id=8335>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?15514>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to