Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Auto Assign issue #86

Closed
msalaba01 opened this issue Oct 3, 2021 · 1 comment
Closed

Possible Auto Assign issue #86

msalaba01 opened this issue Oct 3, 2021 · 1 comment

Comments

@msalaba01
Copy link

In NPCManager AddNewActorToWorkshop it does not check for (WSFW_Setting_AutoAssign_Beds.GetValueInt() == 1) as Bool before calling TryToAssignBeds

;If workshop is currently loaded, also save all new actors that are not robots in the UFO4P_ActorsWithoutBeds array. Otherwise, the new version of TryToAssignBeds won't find them.
if(akActorRef.GetBaseValue(RobotPopulation) == 0 && iNewWorkshopID == iCurrentWorkshopID)
WorkshopParent.WSFW_AddToActorsWithoutBedsArray(akActorRef)
endif

It should look more like:

if(iNewWorkshopID == iCurrentWorkshopID && (WSFW_Setting_AutoAssign_Beds.GetValueInt() == 1) as Bool)
	WorkshopParent.TryToAssignBeds(akWorkshopRef)
endif

Wim95 reported this here:
https://simsettlements.com/site/index.php?threads/auto-assignment-still-happening-after-disabling-in-mcm.17775/post-127801

@kinggath
Copy link
Owner

Fixed for next build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants