diff options
| author | Warmist | 2012-04-04 00:18:40 +0300 |
|---|---|---|
| committer | Warmist | 2012-04-04 00:18:40 +0300 |
| commit | 6a6ca516c37243081f107518b167424e79a75bcc (patch) | |
| tree | 5017b25c9af971378fb4275601b6e17213e6b31d /plugins/Dfusion | |
| parent | 26f5e0dfb591d56bf1b2977ae4618e23a9cba9f0 (diff) | |
| download | dfhack-6a6ca516c37243081f107518b167424e79a75bcc.tar.gz dfhack-6a6ca516c37243081f107518b167424e79a75bcc.tar.bz2 dfhack-6a6ca516c37243081f107518b167424e79a75bcc.tar.xz | |
Stupid bug with nemesis...
Diffstat (limited to 'plugins/Dfusion')
| -rw-r--r-- | plugins/Dfusion/luafiles/common.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Dfusion/luafiles/common.lua b/plugins/Dfusion/luafiles/common.lua index 1ed25679..b74c6aa8 100644 --- a/plugins/Dfusion/luafiles/common.lua +++ b/plugins/Dfusion/luafiles/common.lua @@ -521,7 +521,11 @@ end function getNemesis(unit) local id=getNemesisId(unit) if id then - return df.global.world.nemesis.all[id] + for k,v in pairs(df.global.world.nemesis.all) do + if id==v.id then + return v + end + end end end function Allocate(size) |
