Bugfix: initialize thirst_factor when reading stash

Otherwise, thirst_factor would never get initialized, since
on_join_player checks for a player table first.
master
Ben Deutsch 2015-07-16 22:43:30 +02:00
parent f7458702bb
commit 05f0cac0b4
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ function thirsty.read_stash()
last_pos = '0:0', -- not true, but no matter
time_in_pos = 0.0,
pending_dmg = tonumber(dmg),
thirst_factor = 1.0,
}
end
end