Errors generated when warden tried to escort prisoner to bed they are already in

Started by Thorbane, March 03, 2017, 01:32:23 AM

Previous topic - Next topic

Thorbane

I had had a raid a couple days ago and taken a few prisoners.  They were starting to heal up and be moved from the prison hospital to the regular prison room, but this pawn needed a denture fitted, so she went back to the medical room.  After the surgery I get repeated error messages like this: "Kiriko tried to escort prisoner Saegge to bed at (177, 0, 173) which is in the prisoner's room already" every time a warden looks for a job.

(177, 0, 173) are the co-ordinates of the medical bed Saegge is sitting in.

It seems like this occurs whenever prisoners have ownership of a regular prison bed, but are in a medical prisoner bed in a separate room, like in this test here:

Log and savefile: https://www.dropbox.com/sh/t1ch0oqde16tuui/AADgdlIQ0ESbgcwH9XxgL0p_a?dl=0

ZorbaTHut

Fixed in A17, along with a few more warden+prisoner+bed bugs in the same code. Thanks for the report!