From 59ea36c831796aaa29427e9645e4eb56185b04f3 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 27 Aug 2013 03:18:43 -0400 Subject: Move Serialize::Types to construct after the corresponding extensible items they require when unserializing --- modules/commands/os_info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/os_info.cpp') diff --git a/modules/commands/os_info.cpp b/modules/commands/os_info.cpp index b3da203c0..f5239abb4 100644 --- a/modules/commands/os_info.cpp +++ b/modules/commands/os_info.cpp @@ -241,8 +241,8 @@ class CommandOSInfo : public Command class OSInfo : public Module { CommandOSInfo commandosinfo; - Serialize::Type oinfo_type; ExtensibleItem oinfo; + Serialize::Type oinfo_type; void OnInfo(CommandSource &source, Extensible *e, InfoFormatter &info) { @@ -262,7 +262,7 @@ class OSInfo : public Module public: OSInfo(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), - commandosinfo(this), oinfo_type("OperInfo", OperInfo::Unserialize), oinfo(this, "operinfo") + commandosinfo(this), oinfo(this, "operinfo"), oinfo_type("OperInfo", OperInfo::Unserialize) { } -- cgit