From cffbf4e8fd93ae28f1c6d6fde221e72d70015942 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 9 Oct 2016 11:58:58 -0400 Subject: Don't return a reference from the stack in TypeBase::GetTypes --- include/serialize.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/serialize.h b/include/serialize.h index 73964e3b7..1d0fb9400 100644 --- a/include/serialize.h +++ b/include/serialize.h @@ -279,7 +279,7 @@ class CoreExport Serialize::TypeBase : public Service static TypeBase *Find(const Anope::string &name); - static const std::vector& GetTypes(); + static std::vector GetTypes(); }; template -- cgit