diff options
Diffstat (limited to 'src/base.cpp')
-rw-r--r-- | src/base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base.cpp b/src/base.cpp index bf74d9dc2..66a3cb140 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -132,9 +132,9 @@ void* ExtensionItem::unset_raw(Extensible* container) return rv; } -void ExtensionManager::Register(ExtensionItem* item) +bool ExtensionManager::Register(ExtensionItem* item) { - types.insert(std::make_pair(item->name, item)); + return types.insert(std::make_pair(item->name, item)).second; } void ExtensionManager::BeginUnregister(Module* module, std::vector<reference<ExtensionItem> >& list) |