diff options
author | Ľubomír Remák | 2018-03-21 22:49:36 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
commit | 3928c52c0ee2a930431a807d0b4262440ab75725 (patch) | |
tree | 874e279633838112983f3468fc3fc93880f41365 /engines/mutationofjb/commands/labelcommand.cpp | |
parent | 7a081f0605f2282fdce907bedfc9cae55dc67ab7 (diff) | |
download | scummvm-rg350-3928c52c0ee2a930431a807d0b4262440ab75725.tar.gz scummvm-rg350-3928c52c0ee2a930431a807d0b4262440ab75725.tar.bz2 scummvm-rg350-3928c52c0ee2a930431a807d0b4262440ab75725.zip |
MUTATIONOFJB: Add support for CAMEFROM command.
Diffstat (limited to 'engines/mutationofjb/commands/labelcommand.cpp')
-rw-r--r-- | engines/mutationofjb/commands/labelcommand.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/labelcommand.cpp b/engines/mutationofjb/commands/labelcommand.cpp index 15a10cafd4..87c78f953d 100644 --- a/engines/mutationofjb/commands/labelcommand.cpp +++ b/engines/mutationofjb/commands/labelcommand.cpp @@ -41,8 +41,8 @@ bool LabelCommandParser::parse(const Common::String &line, ScriptParseContext &p label.deleteLastChar(); LabelCommand *labelCmd = new LabelCommand(label); - if (!parseCtx._labels.contains(line)) { - parseCtx._labels[line] = labelCmd; + if (!parseCtx._labels.contains(label)) { + parseCtx._labels[label] = labelCmd; } else { warning("Label '%s' already exists", label.c_str()); } |