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;