Permalink
Browse files

MUTATIONOFJB: Fix GOTO command.

  • Loading branch information...
LubomirR authored and sev- committed Mar 18, 2018
1 parent 54c2c0a commit fb75e483e43a00bb20329dd0b5db92a3588a2d2e
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 fb75e48

Please sign in to comment.