Skip to content

Commit

Permalink
[KKS][Preg] Fix lactation effect breaking changing H locations in som…
Browse files Browse the repository at this point in the history
…e cases
  • Loading branch information
ManlyMarco committed Nov 24, 2021
1 parent da4e152 commit 13a305f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Core_Pregnancy_KK/LactationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ private void InitializeParticles()
particleDic[693] = _partHeavyL;
particleDic[694] = _partLightL;
_particleCtrl.Load(ChaControl.objBodyBone, 1);

#if KKS
// Need to unload the bundles we just loaded or things that try to load them later like hpointmove can crash
// Need to unload both manifest null and add01 for some reason or the bundle won't fully unload
AssetBundleManager.UnloadAssetBundle(@"h/common/01.unity3d", true, null, false);
AssetBundleManager.UnloadAssetBundle(@"h/common/01.unity3d", true, "add01", false);
#endif
}
}
}
Expand Down

0 comments on commit 13a305f

Please sign in to comment.