Ignacio R. Morelle 0f1e3fab3e Add missing check for a null surface from image::get_image()
Fixes a NULL pointer dereference when drawing preview pane overlays in
the Recall Unit dialog for a unit whose overlays list includes an image
that doesn't exist or can't be read, and debug mode is not enabled.

This didn't happen in debug mode because image::get_image() retrieves a
valid placeholder surface (currently images/misc/missing-image.png) in
that situation with debug mode enabled.

Reported by SkyOne in the forums: http://r.wesnoth.org/t39983

Thanks to mattsc for pinpointing the commit at fault.

Note: the code handling overlays on the listbox/menu of the Recall Unit
dialog shouldn't be affected by this since it uses the BLIT image path
function instead of accessing surfaces directly.
2014-02-06 18:53:55 -03:00
2014-02-05 19:39:15 +01:00
2014-02-05 19:39:15 +01:00
2014-01-07 02:39:31 -03:00
2014-01-01 02:08:52 -03:00
2014-01-06 01:35:09 -03:00

The Battle for Wesnoth is a Free, turn-based tactical strategy game with a high
fantasy theme, featuring both single-player, and online/hotseat multiplayer
combat. Fight a desperate battle to reclaim the throne of Wesnoth, or take hand
in any number of other adventures.

The game's source code and artwork, sound, and music assets are provided under
the terms of the GNU General Public License version 2, or (at your option) any
later version. Note that for artwork, sound, and music, we interpret
"preferred form of the work for making modifications" as the modifiable form
that the author chooses to ship us for the source tree. For convenience, a
reference copy of the GNU GPL version 2 is provided in the COPYING file in
this distribution.

Some portions of the source code can be used under different license terms,
whenever stated as such in the source.

See INSTALL for instructions on how to build the game from source code.

A (translated) description of how to play the game can be found in
doc/manual/manual.*.html .

For extensive documentation about all aspects of the game, see the
official Battle for Wesnoth web site:

    http://www.wesnoth.org/

The official Battle for Wesnoth Forums (with over 400,000 posts from more than
20,000 registered members) can be found at:

    http://forums.wesnoth.org/
Description
韦诺之战
Readme 10 GiB
Languages
INI 51.6%
C++ 35.9%
Lua 5.7%
Python 4.3%
Emacs Lisp 1%
Other 1.1%