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;
|
||||
|
||||
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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue