Closed GregTheMadMonk closed 4 years ago
That was a minor derp on my part. It should probably use the captured miscAssets instead. I'll make a fix soon.
Should be fixed in commit 1d244cb4b0473a8de6dbdfb86d02d9e5615225c9. Strangely Travis CI didn't complain about it in the first place.
Yup, it helped.
When compiling OpenTESArena, compiler throws an error:
The lines that cause the error: https://github.com/afritz1/OpenTESArena/blob/c45335ddfdb2bdac7ecf7f1603dbdbd27d63faf6/OpenTESArena/src/World/ProvinceDefinition.cpp#L27-L29 According to this StackOverflow answer, even if the code compiled, it would've used the parameter
miscAssets
, not the captured one. As expected, whenmiscAssets
is removed from capture list, game compiles and runs. The other way around this issue is removingconst MiscAssets &miscAssets
from lambda parameters, and removing an extra parameter in call https://github.com/afritz1/OpenTESArena/blob/c45335ddfdb2bdac7ecf7f1603dbdbd27d63faf6/OpenTESArena/src/World/ProvinceDefinition.cpp#L83 as it seems to be the only place that callstryAddCity
andmiscAssets
captured there is the same as captured intryAddCity
. This solution also leads to the game compiling and running.My
gcc --version
:gcc (Arch Linux 9.3.0-1) 9.3.0
Sorry if my english is hard to understand sometimes)