aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorĽubomír Remák2018-03-18 22:17:49 +0100
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commitfb75e483e43a00bb20329dd0b5db92a3588a2d2e (patch)
treeb3a5985d38a1c995ea494dc2d025735468b748dc /engines
parent54c2c0aee6e371f8058c50e0a4113f5b5492169e (diff)
downloadscummvm-rg350-fb75e483e43a00bb20329dd0b5db92a3588a2d2e.tar.gz
scummvm-rg350-fb75e483e43a00bb20329dd0b5db92a3588a2d2e.tar.bz2
scummvm-rg350-fb75e483e43a00bb20329dd0b5db92a3588a2d2e.zip
MUTATIONOFJB: Fix GOTO command.
Diffstat (limited to 'engines')
-rw-r--r--engines/mutationofjb/commands/gotocommand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/gotocommand.cpp b/engines/mutationofjb/commands/gotocommand.cpp
index 77c474b653..92cce14479 100644
--- a/engines/mutationofjb/commands/gotocommand.cpp
+++ b/engines/mutationofjb/commands/gotocommand.cpp
@@ -34,11 +34,11 @@
namespace MutationOfJB {
bool GotoCommandParser::parse(const Common::String &line, ScriptParseContext &parseCtx, Command *&command) {
- if (line.firstChar() != '_') {
+ if (line.size() < 6 || !line.hasPrefix("GOTO")) {
return false;
}
- Common::String label = line.c_str() + 1;
+ Common::String label = line.c_str() + 6;
GotoCommand *gotoCmd = new GotoCommand();
if (parseCtx._labels.contains(label)) {