View Issue Details

IDProjectCategoryView StatusLast Update
0004938Dwarf FortressDwarf Mode -- Jobs, Healthcarepublic2011-10-25 23:21
ReporterGrumbledwarfskin Assigned Touser11 
PrioritynormalSeverityminorReproducibilityrandom
Status resolvedResolutionduplicate 
Product Version0.31.25 
Summary0004938: Multiple dwarves pick same bed in hospital, one dies of thirst
DescriptionI'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,).
TagsNo tags attached.

Relationships

duplicate of 0004553 new Extra dwarves stuck in hospital beds 

Activities

user11

2011-10-25 23:21

  ~0018910

Please continue discussion in 0004553.

Issue History

Date Modified Username Field Change
2011-10-25 22:37 Grumbledwarfskin New Issue
2011-10-25 23:20 user11 Relationship added duplicate of 0004553
2011-10-25 23:20 user11 Status new => resolved
2011-10-25 23:20 user11 Resolution open => duplicate
2011-10-25 23:20 user11 Assigned To => user11
2011-10-25 23:21 user11 Note Added: 0018910