summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
commitfc2af69bd5c33cde0f340cfb9f2707765ce68029 (patch)
treea033fc0b875f27b44d9511e6c9d454da16d63805 /src
parent7918dec88392846dcb7a82ab0d9fca912fb77305 (diff)
Fix issue with leading space for scroll flavors
Diffstat (limited to 'src')
-rw-r--r--src/object1.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/object1.cc b/src/object1.cc
index ae0317c7..7a462b41 100644
--- a/src/object1.cc
+++ b/src/object1.cc
@@ -618,7 +618,10 @@ void flavor_init(void)
}
/* Add the word with separator */
- buf += " ";
+ if (buf.size() > 0)
+ {
+ buf += " ";
+ }
buf += tmp;
}