aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-05-28 19:54:46 +0000
committerMax Horn2003-05-28 19:54:46 +0000
commitb8e943a67eade212f2b5586f21951261b3dd4b81 (patch)
tree8ef8502d31223f6271afb7d6e83f57ce32500549 /scumm
parent2dd2e99cabd70b4375cfae97771d340591956024 (diff)
downloadscummvm-rg350-b8e943a67eade212f2b5586f21951261b3dd4b81.tar.gz
scummvm-rg350-b8e943a67eade212f2b5586f21951261b3dd4b81.tar.bz2
scummvm-rg350-b8e943a67eade212f2b5586f21951261b3dd4b81.zip
cleanup
svn-id: r8056
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v2.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index 005dd38078..489243b38a 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -1320,20 +1320,20 @@ void Scumm_v2::o2_setObjectName() {
if (name == NULL)
return; // Silently abort
- while(name[size++])
- ;
+ while(name[size++])
+ ;
if (i > size) {
warning("New name of object %d too long (old *%s* new *%s*)", obj, name, work);
i = size;
}
- while (i < size) {
- work[i-1] = '@';
- i++;
- }
- work[i-1] = 0;
-
+ while (i < size) {
+ work[i-1] = '@';
+ i++;
+ }
+ work[i-1] = 0;
+
memcpy(name, work, i);
redrawV2Inventory();
}