mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
LinkShipLogFacts before SetMindSlideCollection to prevent NRE
This commit is contained in:
parent
bec7560a9f
commit
308a83e6f3
@ -321,14 +321,10 @@ namespace NewHorizons.Builder.Props
|
||||
var mindSlideCollection = standingTorch.AddComponent<MindSlideCollection>();
|
||||
mindSlideCollection._slideCollectionContainer = slideCollectionContainer;
|
||||
|
||||
// Make sure that these slides play when the player wanders into the beam
|
||||
slideCollectionContainer._initialized = true; // Hack to avoid initialization in the following call (it would throw NRE)
|
||||
mindSlideProjector.SetMindSlideCollection(mindSlideCollection);
|
||||
slideCollectionContainer._initialized = false;
|
||||
|
||||
|
||||
LinkShipLogFacts(info, slideCollectionContainer);
|
||||
|
||||
mindSlideProjector.SetMindSlideCollection(mindSlideCollection);
|
||||
|
||||
return standingTorch;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user