Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0004938Dwarf FortressDwarf Mode -- Jobs, Healthcarepublic2011-10-25 22:372011-10-25 23:21
Grumbledwarfskin 
Dwarfu 
normalminorrandom
resolvedduplicate 
0.31.25 
 
0004938: Multiple dwarves pick same bed in hospital, one dies of thirst
I've had this bug happen twice in two different forts:

Multiple dwarves get injured, some of them are hauled to the hospital by a "recover wounded" task, some of them go to the hospital themselves.

Two of them pick the same bed in the hospital. One of them is listed as "resting". The other is listed as "no job", and eventually dies of thirst.

In the most recent occurrence of this bug, one walked to the hospital themselves, and took a bed in a corner position (the rightmost of three side-by-side beds in the small hospital). I had three injured dwarves, the first bed was occupied, second bed remained free, third bed got two dwarves.

I'm not 100% certain, but I believe this was the sequence:

The first injured dwarf was brought to rest in the first bed.

The second injured dwarf came on their own and picked the third bed. (Could it be an off-by-one error in the code intended to keep the beds exclusive, and the walk-in was supposed to claim the second bed? I should note that I was building additional beds into the hospital at the same time as dwarves were going to the hospital, so that could have caused confusion, if the code matching dwarves with beds doesn't account for what happens if a new bed is added to the hospital.)

The third injured dwarf was then brought to rest in the third bed.

The second dwarf is no longer listed as resting, they're listed as "no job", and are ignored by everyone. Nobody does a "recover wounded" task for them (perhaps because they're already in the hospital), and nobody brings them water or food. They have no entry in their medical history, presumably because they're a walk-in, and never got a diagnosis.

I suspect one part of the code thinks they're properly registered with the hospital (so no job, and no recover wounded task), but the hospital itself lost track of them when another patient took away their bed (and that's why there's no diagnosis task, and no bring food/water tasks,).
No tags attached.
duplicate of 0004553new  Extra dwarves stuck in hospital beds 
Issue History
2011-10-25 22:37GrumbledwarfskinNew Issue
2011-10-25 23:20DwarfuRelationship addedduplicate of 0004553
2011-10-25 23:20DwarfuStatusnew => resolved
2011-10-25 23:20DwarfuResolutionopen => duplicate
2011-10-25 23:20DwarfuAssigned To => Dwarfu
2011-10-25 23:21DwarfuNote Added: 0018910

Notes
(0018910)
Dwarfu   
2011-10-25 23:21   
Please continue discussion in 0004553.