Skip to content

Commit

Permalink
MUTATIONOFJB: Fix GOTO command.
Browse files Browse the repository at this point in the history
  • Loading branch information
LubomirR committed Aug 19, 2018
1 parent be8e649 commit 111108a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/mutationofjb/commands/gotocommand.cpp
Expand Up @@ -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)) {
Expand Down

0 comments on commit 111108a

Please sign in to comment.