From 867ff3dcfab1e4ebf1b7b094df7dd9c8039aa73b Mon Sep 17 00:00:00 2001 From: Akkadius Date: Mon, 6 Apr 2020 00:22:52 -0500 Subject: [PATCH] Add constructor to world content service --- common/content/world_content_service.cpp | 5 +++++ common/content/world_content_service.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/common/content/world_content_service.cpp b/common/content/world_content_service.cpp index 350208774..e636d8854 100644 --- a/common/content/world_content_service.cpp +++ b/common/content/world_content_service.cpp @@ -20,6 +20,11 @@ #include "world_content_service.h" +WorldContentService::WorldContentService() +{ + SetCurrentExpansion(0); +} + int WorldContentService::GetCurrentExpansion() const { return current_expansion; diff --git a/common/content/world_content_service.h b/common/content/world_content_service.h index d6d6723a9..9faa6847e 100644 --- a/common/content/world_content_service.h +++ b/common/content/world_content_service.h @@ -93,6 +93,8 @@ namespace Expansion { class WorldContentService { public: + WorldContentService(); + int GetCurrentExpansion() const; void SetCurrentExpansion(int current_expansion);