diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-01-16 21:05:44 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-01-16 21:05:44 +1000 |
commit | 5481e38d0b505277615f8b76cb90f0742a1dfe6f (patch) | |
tree | 682217f413d128e5df1f9d265c34c154eba5ebad /src/util | |
parent | e5b636712c6d93d54f850e472abcfe8f0e7527a0 (diff) | |
download | minetest-5481e38d0b505277615f8b76cb90f0742a1dfe6f.tar.gz minetest-5481e38d0b505277615f8b76cb90f0742a1dfe6f.tar.bz2 minetest-5481e38d0b505277615f8b76cb90f0742a1dfe6f.zip |
Make minor style change(unescape_string())
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/string.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/string.h b/src/util/string.h index fa298bfaa..3ece2371d 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -406,10 +406,11 @@ inline std::basic_string<T> unescape_string(std::basic_string<T> &s) std::basic_string<T> res; for (size_t i = 0; i < s.length(); i++) { - if (s[i] == '\\') + if (s[i] == '\\') { i++; - if (i >= s.length()) - break; + if (i >= s.length()) + break; + } res += s[i]; } |