]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/dynamic.h
Added some hax :( to prevent invalid symbols. It seems that instead of returning...
[user/henk/code/inspircd.git] / include / dynamic.h
index 937005e114edd832678a47b474ca4cd6d8759b35..98deaf7613e7b8d43a3c52b377045392bd79bca7 100644 (file)
@@ -67,7 +67,7 @@ template <class T> class DLLFactory : public DLLFactoryBase
  public:
        DLLFactory(const char *fname, const char *func_name=0) : DLLFactoryBase(fname,func_name)
        {
-               if (factory_func)
+               if (!err && factory_func)
                        factory = (T*)factory_func();
                else
                        factory = 0;