diff options
author | Adam <Adam@anope.org> | 2013-07-14 03:16:23 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-07-14 03:16:23 -0400 |
commit | 37733dea6549ee7ff27a1cc04ebc6014b8870016 (patch) | |
tree | 9007a388ed3088788daa1a24385112ea6bc1bc05 /include/extensible.h | |
parent | eabb9c0c11c3fdd51c57410f4b104bf08ca57d46 (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.h | 3 |
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; } |