mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make minor style change(unescape_string())
This commit is contained in:
parent
e5b636712c
commit
5481e38d0b
1 changed files with 4 additions and 3 deletions
|
@ -406,10 +406,11 @@ inline std::basic_string<T> unescape_string(std::basic_string<T> &s)
|
||||||
std::basic_string<T> res;
|
std::basic_string<T> res;
|
||||||
|
|
||||||
for (size_t i = 0; i < s.length(); i++) {
|
for (size_t i = 0; i < s.length(); i++) {
|
||||||
if (s[i] == '\\')
|
if (s[i] == '\\') {
|
||||||
i++;
|
i++;
|
||||||
if (i >= s.length())
|
if (i >= s.length())
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
res += s[i];
|
res += s[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue