From 061ac414e8cb300b6fb9f5d3580af32bce6d6d29 Mon Sep 17 00:00:00 2001 From: nordsoft Date: Thu, 22 Sep 2022 19:22:31 +0400 Subject: [PATCH] Incorporate changes with scripting --- mapeditor/CGameInfo.cpp | 2 ++ mapeditor/CGameInfo.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mapeditor/CGameInfo.cpp b/mapeditor/CGameInfo.cpp index 98ac227b4..bcb32aa13 100644 --- a/mapeditor/CGameInfo.cpp +++ b/mapeditor/CGameInfo.cpp @@ -71,10 +71,12 @@ const HeroTypeService * CGameInfo::heroTypes() const return globalServices->heroTypes(); } +#if SCRIPTING_ENABLED const scripting::Service * CGameInfo::scripts() const { return globalServices->scripts(); } +#endif const spells::Service * CGameInfo::spells() const { diff --git a/mapeditor/CGameInfo.h b/mapeditor/CGameInfo.h index 04d96d3a6..53f93771d 100644 --- a/mapeditor/CGameInfo.h +++ b/mapeditor/CGameInfo.h @@ -59,7 +59,9 @@ public: const FactionService * factions() const override; const HeroClassService * heroClasses() const override; const HeroTypeService * heroTypes() const override; +#if SCRIPTING_ENABLED const scripting::Service * scripts() const override; +#endif const spells::Service * spells() const override; const SkillService * skills() const override; const ObstacleService * obstacles() const override;