diff --git a/Development/Editor/Core/Script/Lua/compile/wave.lua b/Development/Editor/Core/Script/Lua/compile/wave.lua index f8417c9c9..d85e53e7c 100644 --- a/Development/Editor/Core/Script/Lua/compile/wave.lua +++ b/Development/Editor/Core/Script/Lua/compile/wave.lua @@ -22,6 +22,7 @@ function wave:do_compile(op) cmd = cmd .. '--autooutput ' cmd = cmd .. string.format('--sysinclude="%s" ', self.sys_include_path:string()) cmd = cmd .. string.format('--sysinclude="%s" ', self.plugin_include_path:string()) + cmd = cmd .. string.format('--include="%s" ', op.map_path:parent_path():string()) cmd = cmd .. string.format('--include="%s" ', self.jass_include_path:string()) cmd = cmd .. string.format('--define=WARCRAFT_VERSION=%d ', 100 * op.option.runtime_version.major + op.option.runtime_version.minor) cmd = cmd .. string.format('--define=YDWE_VERSION_STRING=\\"%s\\" ', tostring(ydwe_version))