diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index d067d3c9..e3fbdca6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,6 +26,7 @@ #include <getopt.h> #include <iostream> #include <physfs.h> +#include <sstream> #include <unistd.h> #include <vector> #include <SDL_image.h> @@ -77,7 +78,6 @@ #include "resources/resourcemanager.h" #include "utils/dtor.h" -#include "utils/tostring.h" // Account infos char n_server, n_character; @@ -266,9 +266,10 @@ void init_engine() for (int i=0; i < NR_HAIR_STYLES; i++) { + std::stringstream filename; + filename << "graphics/sprites/hairstyle" << (i + 1) << ".png"; Spriteset *tmp = ResourceManager::getInstance()->createSpriteset( - "graphics/sprites/hairstyle" + toString(i + 1) + ".png", - 40, 40); + filename.str(), 40, 40); if (!tmp) { logger->error("Unable to load hairstyle"); } else { |