aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-11-15 22:11:53 +0100
committerWillem Jan Palenstijn2011-11-15 23:21:50 +0100
commit01a557702a0fdfc90cf00736c7c95f8666867997 (patch)
tree451ff95f318f5e2ff2b1ef994bf94cd8018fed04
parent03a2352e307cfdc5bbc07e7e8d82c85dab06ad01 (diff)
downloadscummvm-rg350-01a557702a0fdfc90cf00736c7c95f8666867997.tar.gz
scummvm-rg350-01a557702a0fdfc90cf00736c7c95f8666867997.tar.bz2
scummvm-rg350-01a557702a0fdfc90cf00736c7c95f8666867997.zip
DREAMWEB: Clean up getFilename
-rw-r--r--engines/dreamweb/stubs.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 011346e63f..6ddd01bc40 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -203,12 +203,8 @@ void DreamGenContext::dreamweb() {
}
static Common::String getFilename(Context &context) {
- uint16 name_ptr = context.dx;
- Common::String name;
- uint8 c;
- while((c = context.cs.byte(name_ptr++)) != 0)
- name += (char)c;
- return name;
+ const char *name = (const char *)context.cs.ptr(context.dx, 0);
+ return Common::String(name);
}
void DreamGenContext::seecommandtail() {