From 3b83cc89885788de19b09f5e9e55c5d3ad7c60c9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 16 Oct 2008 23:36:56 +0000 Subject: [FIX] Signature is fixed in Sigscript [FIX] Hat cleaned up a bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@279 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- sigscript/MapEffectWrapper.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sigscript/MapEffectWrapper.cpp') diff --git a/sigscript/MapEffectWrapper.cpp b/sigscript/MapEffectWrapper.cpp index c06d7c10..a8379407 100644 --- a/sigscript/MapEffectWrapper.cpp +++ b/sigscript/MapEffectWrapper.cpp @@ -24,9 +24,10 @@ Sigscript::MapEffectWrapper* Sigscript::MapEffectWrapper::create(const Sigmod::MapEffect* effect, MapWrapper* parent) { - if (!m_instances.contains(Signature(parent, effect->id()))) - m_instances[Signature(parent, effect->id())] = new MapEffectWrapper(effect, parent); - return qobject_cast(m_instances[Signature(parent, effect->id())]); + Signature sig = Signature(parent, Subsignature(effect->className(), effect->id())); + if (!m_instances.contains(sig)) + m_instances[sig] = new MapEffectWrapper(effect, parent); + return qobject_cast(m_instances[sig]); } Sigscript::MapEffectWrapper::MapEffectWrapper(const Sigmod::MapEffect* effect, MapWrapper* parent) : -- cgit