1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 15:13:12 +02:00

Fix Stas::Unserialize to return the instance

This commit is contained in:
Adam
2014-04-25 16:46:37 -04:00
parent 2ab4f175a8
commit 82008d507c
+7 -2
View File
@@ -14,7 +14,12 @@
struct Stats : Serializable struct Stats : Serializable
{ {
Stats() : Serializable("Stats") { } static Stats *me;
Stats() : Serializable("Stats")
{
me = this;
}
void Serialize(Serialize::Data &data) const anope_override void Serialize(Serialize::Data &data) const anope_override
{ {
@@ -26,7 +31,7 @@ struct Stats : Serializable
{ {
data["maxusercnt"] >> MaxUserCount; data["maxusercnt"] >> MaxUserCount;
data["maxusertime"] >> MaxUserTime; data["maxusertime"] >> MaxUserTime;
return NULL; return me;
} }
}; };