Sid Meier's Civilization V

Sid Meier's Civilization V

Faerun for BNW
xuzin.timur 26 Oct, 2022 @ 5:21am
Probably typo in the code (causes crashes)
Hello, I played this mod few years ago and it is fantastic. New changes makes a game even more immersive.

However, it crashes now more often.
I probably found one of the places which causes crashes:

`Faerun for BNW (v 18)/Lua/Cities/Faerun_Controller_Cities.lua`
Line: 145.

You have here
```
if buildingInfo.KillCreateUnit then
local unitInfo = GameInfo.Units[row.KillCreateUnit]
```

I think, you meant
```
if buildingInfo.KillCreateUnit then
local unitInfo = GameInfo.Units[buildingInfo.KillCreateUnit]
```
because `row` can be nil and cause crashes.