Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Source/XML/level_loader.cpp')
-rw-r--r--Source/XML/level_loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/XML/level_loader.cpp b/Source/XML/level_loader.cpp
index 9f506f9d..909fc576 100644
--- a/Source/XML/level_loader.cpp
+++ b/Source/XML/level_loader.cpp
@@ -324,7 +324,7 @@ void AnalyzeForLineBreaks(char* str, int len){
std::string second_line;
while(first_line.length() > 0){
while(metrics.bounds[2] > threshold){
- int last_space = first_line.find_last_of(" ");
+ int last_space = first_line.find_last_of(' ');
second_line.insert(0, first_line.substr(last_space));
first_line.resize(last_space);
metrics = g_as_text_context.ASGetTextAtlasMetrics( font_path, font_size, 0, first_line.c_str());