|
From: Markus R. <god...@us...> - 2009-07-29 15:36:11
|
Module: performous
Branch: master
Commit: 75c176eb6cf015d46d220777115e43f73743b51e
Author: Markus Raab <un...@ma...>
Date: Wed Jul 29 11:34:15 2009 +0200
bug fix
check path, because there might be a picture given in
xml but not as file
---
game/screen_players.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/screen_players.cc b/game/screen_players.cc
index f2b6542..81e819c 100644
--- a/game/screen_players.cc
+++ b/game/screen_players.cc
@@ -162,7 +162,7 @@ void ScreenPlayers::draw() {
PlayerItem player_display = m_players[baseidx + i];
if (baseidx + i < 0 || baseidx + i >= int(ss)) continue;
Surface* cover = 0;
- if (player_display.picture != "")
+ if (player_display.path != "")
{
try { cover = &m_covers[player_display.path + "/" + player_display.picture]; }
catch (std::exception const&) {}
|