From: Pierre-Luc Beaudoin Date: Mon, 9 Feb 2009 20:20:55 +0000 (+0200) Subject: Don't generate a million criticals if the image is not found X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f5f3b337b949b3a93eac9708707a4a095bb204;p=libchamplain Don't generate a million criticals if the image is not found --- diff --git a/champlain/champlain-tile.c b/champlain/champlain-tile.c index fe57660..94bda02 100644 --- a/champlain/champlain-tile.c +++ b/champlain/champlain-tile.c @@ -57,6 +57,8 @@ static void create_error_tile(Map* map, Tile* tile) { tile->actor = clutter_texture_new_from_file(DATADIR "/champlain/error.svg", NULL); + if (!tile->actor) + return; tile_set_position(map, tile);