Fix crash on missing factions mod

This commit is contained in:
sapier 2013-08-26 14:03:47 +02:00
parent 589edb4421
commit a20c287abc

View File

@ -98,7 +98,11 @@ end
-- --
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
function mobf_factions.cleanupentity(entity) function mobf_factions.cleanupentity(entity)
if mobf_rtd.factions_available then
return factions.get_factions(entity.object) return factions.get_factions(entity.object)
else
return ""
end
end end
------------------------------------------------------------------------------- -------------------------------------------------------------------------------