summaryrefslogtreecommitdiff
path: root/src/map/script-fun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script-fun.cpp')
-rw-r--r--src/map/script-fun.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp
index 6fe77bf..8afe4ef 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -3667,14 +3667,10 @@ static
void builtin_registercmd(ScriptState *st)
{
RString evoke = conv_str(st, &AARG(0));
- NpcName npcname = stringish<NpcName>(conv_str(st, &AARG(1)));
ZString event_ = conv_str(st, &AARG(1));
NpcEvent event;
extract(event_, &event);
- if (event.label)
- spells_by_events.put(evoke, event);
- else
- spells_by_name.put(evoke, npcname);
+ spells_by_events.put(evoke, event);
}
/*==========================================