aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/use.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dreamweb/use.cpp')
-rw-r--r--engines/dreamweb/use.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index f584de254a..d6648b556e 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -136,14 +136,11 @@ void DreamGenContext::useroutine() {
}
delpointer();
- getobtextstart();
- findnextcolon();
- if (al != 0) {
- findnextcolon();
- if (al != 0) {
- al = es.byte(si);
- if (al != 0) {
- usetext();
+ uint8 *obText = getobtextstartCPP();
+ if (findnextcolon(&obText) != 0) {
+ if (findnextcolon(&obText) != 0) {
+ if (*obText != 0) {
+ usetext(obText);
hangonp(400);
putbackobstuff();
return;