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

                 Summary: formula in SUF causes crashs/undefined behaviour
                 Project: Battle for Wesnoth
            Submitted by: gfgtdf
            Submitted on: So 13 Apr 2014 02:25:16 UTC
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.13.0-dev
        Operating System: windows

    _______________________________________________________

Details:

i dint test whether this issue exists in 1.11.
im investigated this, and what i found is
https://github.com/wesnoth/wesnoth/blob/master/src/unit.cpp#L1657 where a
temporary std::pair<map_location, unit> is passes and then referenced in
https://github.com/wesnoth/wesnoth/blob/master/src/callable_objects.hpp#L149.
I think this is the error.

maybe someone who knows why we pass a std::pair instead of passing 2
arguments, can fix this issue?




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Gna!
  http://gna.org/


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

Reply via email to