浏览代码

Incorporate changes with scripting

nordsoft 3 年之前
父节点
当前提交
061ac414e8
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      mapeditor/CGameInfo.cpp
  2. 2 0
      mapeditor/CGameInfo.h

+ 2 - 0
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
 {

+ 2 - 0
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;