rwpsychology / Psychology

This is a total overhaul of Rimworld's psychological and social systems.
https://ludeon.com/forums/index.php?topic=34112
15 stars 9 forks source link

VoluntarilyJoinableLordsStarter / DivideByZeroError on map with no colonists #23

Closed HG-Dev closed 6 years ago

HG-Dev commented 6 years ago

Line 35 on VoluntarilyJoinableLordsStarter.cs has a division operation that can result in a DivideByZeroError if the map has no colonists on it. I suggest adding a pawn count check to the (map.IsPlayerHome) check.