mirror of
https://github.com/anope/anope.git
synced 2026-06-24 23:06:37 +02:00
Add a typedef for the serializable id.
This commit is contained in:
@@ -255,7 +255,7 @@ public:
|
||||
Serializable *obj = sb->Unserialize(NULL, data);
|
||||
if (obj)
|
||||
{
|
||||
auto oid = Anope::TryConvert<unsigned int>(res.Get(j, "id"));
|
||||
auto oid = Anope::TryConvert<Serializable::Id>(res.Get(j, "id"));
|
||||
if (oid.has_value())
|
||||
obj->id = oid.value();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user