[Scummvm-cvs-logs] SF.net SVN: scummvm:[34718] scummvm/trunk/common/str.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Thu Oct 2 19:17:18 CEST 2008
Revision: 34718
http://scummvm.svn.sourceforge.net/scummvm/?rev=34718&view=rev
Author: fingolfin
Date: 2008-10-02 17:17:18 +0000 (Thu, 02 Oct 2008)
Log Message:
-----------
Ignore String::deleteLastChar when called on an empty string
Modified Paths:
--------------
scummvm/trunk/common/str.cpp
Modified: scummvm/trunk/common/str.cpp
===================================================================
--- scummvm/trunk/common/str.cpp 2008-10-02 17:08:15 UTC (rev 34717)
+++ scummvm/trunk/common/str.cpp 2008-10-02 17:17:18 UTC (rev 34718)
@@ -339,7 +339,8 @@
}
void String::deleteLastChar() {
- deleteChar(_size - 1);
+ if (_size > 0)
+ deleteChar(_size - 1);
}
void String::deleteChar(uint32 p) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list