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/EggGroupWrapper.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sigscript/EggGroupWrapper.cpp') diff --git a/sigscript/EggGroupWrapper.cpp b/sigscript/EggGroupWrapper.cpp index fee20d84..0c18289b 100644 --- a/sigscript/EggGroupWrapper.cpp +++ b/sigscript/EggGroupWrapper.cpp @@ -23,9 +23,10 @@ Sigscript::EggGroupWrapper* Sigscript::EggGroupWrapper::create(const Sigmod::EggGroup* eggGroup, SigmodWrapper* parent) { - if (!m_instances.contains(Signature(parent, eggGroup->id()))) - m_instances[Signature(parent, eggGroup->id())] = new EggGroupWrapper(eggGroup, parent); - return qobject_cast(m_instances[Signature(parent, eggGroup->id())]); + Signature sig = Signature(parent, Subsignature(eggGroup->className(), eggGroup->id())); + if (!m_instances.contains(sig)) + m_instances[sig] = new EggGroupWrapper(eggGroup, parent); + return qobject_cast(m_instances[sig]); } Sigscript::EggGroupWrapper::EggGroupWrapper(const Sigmod::EggGroup* eggGroup, SigmodWrapper* parent) : -- cgit