#4740: Fix crash when failing a mission (and attempting to draw the results
screen)
-------------------------------------------------+-------------------------
        Reporter:  pastdue                       |      Owner:
            Type:  patch (an actual patch, not   |     Status:  new
  a request for one)                             |  Milestone:  unspecified
        Priority:  normal                        |    Version:  git/master
       Component:  other                         |
Operating System:  All/Non-Specific              |
-------------------------------------------------+-------------------------
 Since `sButInit` is a `W_BUTINIT` that is **re-used** on failure,
 `initPUserDataFunc` must be used (instead of setting `pUserData`) to
 ensure that each created `W_BUTTON` instance has a unique
 `DisplayTextOptionCache` in its `pUserData`.

 GitHub PR: https://github.com/Warzone2100/warzone2100/pull/118

 Patch: https://github.com/Warzone2100/warzone2100/pull/118.patch

--
Ticket URL: <http://developer.wz2100.net/ticket/4740>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to