From 8fe5d046d64f9fb07f986c0b2344a7f2b6116fa2 Mon Sep 17 00:00:00 2001 From: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Date: Sun, 24 Sep 2023 18:23:21 +0100 Subject: [PATCH] Fixed overflow role not actually being overflow anymore after ResetOccupation is called (#78556) ## About The Pull Request See title. Calling ResetOccupation doesn't re-apply the overflow role correctly so it has reduced slots when it shouldn't. ## Why It's Good For The Game Bugfix ## Changelog :cl: fix: Fixed the overflow role having less slots than it actually should. /:cl: Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com> --- code/controllers/subsystem/job.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/controllers/subsystem/job.dm b/code/controllers/subsystem/job.dm index 4fc991c5f0d..a4ef0a639fb 100644 --- a/code/controllers/subsystem/job.dm +++ b/code/controllers/subsystem/job.dm @@ -299,6 +299,8 @@ SUBSYSTEM_DEF(job) player.mind.special_role = null SetupOccupations() unassigned = list() + if(overflow_role) + set_overflow_role(overflow_role) return