summaryrefslogtreecommitdiff
path: root/include/extensible.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-07-14 03:16:23 -0400
committerAdam <Adam@anope.org>2013-07-14 03:16:23 -0400
commit37733dea6549ee7ff27a1cc04ebc6014b8870016 (patch)
tree9007a388ed3088788daa1a24385112ea6bc1bc05 /include/extensible.h
parenteabb9c0c11c3fdd51c57410f4b104bf08ca57d46 (diff)
Fix Extensible<bool>::Set with a value (which is redundant due to the bool specailization)
Diffstat (limited to 'include/extensible.h')
-rw-r--r--include/extensible.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/extensible.h b/include/extensible.h
index c56e385c0..2364d2c7e 100644
--- a/include/extensible.h
+++ b/include/extensible.h
@@ -78,7 +78,8 @@ class BaseExtensibleItem : public ExtensibleBase
T* Set(Extensible *obj, const T &value)
{
T* t = Set(obj);
- *t = value;
+ if (t)
+ *t = value;
return t;
}