From 0052dd29a7b0f8286990a49af6e4947e4bc784cf Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 27 Jan 2013 01:59:38 -0500 Subject: Fix db_flatfile not clearing databases on save if there are no objects left of that type (it will leave the old database with old objects currently) --- src/serialize.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/serialize.cpp b/src/serialize.cpp index 5594cf93e..4f0068a48 100644 --- a/src/serialize.cpp +++ b/src/serialize.cpp @@ -170,3 +170,8 @@ const std::vector &Type::GetTypeOrder() return TypeOrder; } +const std::map& Type::GetTypes() +{ + return Types; +} + -- cgit