aboutsummaryrefslogtreecommitdiff
path: root/common/str.cpp
diff options
context:
space:
mode:
authorThierry Crozat2013-03-20 20:10:13 +0000
committerThierry Crozat2013-03-20 20:10:13 +0000
commit33a29ca61ce6c8d653017b61bfae33b4da71dc01 (patch)
tree3f0ea3c725cfc02c922e48578fc81e9c19997fd0 /common/str.cpp
parent0de198c9972ea39be93b48bd49e98bf499edc441 (diff)
downloadscummvm-rg350-33a29ca61ce6c8d653017b61bfae33b4da71dc01.tar.gz
scummvm-rg350-33a29ca61ce6c8d653017b61bfae33b4da71dc01.tar.bz2
scummvm-rg350-33a29ca61ce6c8d653017b61bfae33b4da71dc01.zip
COMMON: Fix assert condition in String::setChar()
Diffstat (limited to 'common/str.cpp')
-rw-r--r--common/str.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/str.cpp b/common/str.cpp
index 61fdcfaf31..5d647ee4f0 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -370,7 +370,7 @@ void String::clear() {
}
void String::setChar(char c, uint32 p) {
- assert(p <= _size);
+ assert(p < _size);
makeUnique();
_str[p] = c;