From: Ricardo Cruz Date: Tue, 17 Aug 2004 21:53:20 +0000 (+0000) Subject: Changed output message. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7871814a4dcd222f4f703f6fa9c9ff5b38d7d8d7;p=supertux.git Changed output message. SVN-Revision: 1795 --- diff --git a/lib/special/sprite_manager.cpp b/lib/special/sprite_manager.cpp index 7c4bc1d47..195130ee0 100644 --- a/lib/special/sprite_manager.cpp +++ b/lib/special/sprite_manager.cpp @@ -88,15 +88,12 @@ Sprite* SpriteManager::load(const std::string& name) { Sprites::iterator i = sprites.find(name); - if (i != sprites.end()) + if (i == sprites.end()) { - return i->second; - } - else - { - std::cout << "SpriteManager: Sprite '" << name << "' not found" << std::endl; + std::cerr << "Warning: Sprite '" << name << "' not found" << std::endl; return 0; } + return i->second; } /* EOF */