Permalink
Browse files

MUTATIONOFJB: Fix GOTO command.

  • Loading branch information...
LubomirR committed Mar 18, 2018
1 parent be8e649 commit 111108a119b956efdfe7776d05728d4972a6433a
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)) {

0 comments on commit 111108a

Please sign in to comment.