mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 10:38:16 +00:00
fix: move ChangeScenario outside of loop, remove the discard modifier
This commit is contained in:
parent
e2cdb1238b
commit
e003e4dc94
1 changed files with 3 additions and 3 deletions
|
|
@ -446,9 +446,9 @@ namespace PepperDash.Essentials.Core
|
||||||
{
|
{
|
||||||
Debug.LogMessage(LogEventLevel.Debug, this, "Unable to find partition with key: '{0}'", partitionState.PartitionKey);
|
Debug.LogMessage(LogEventLevel.Debug, this, "Unable to find partition with key: '{0}'", partitionState.PartitionKey);
|
||||||
}
|
}
|
||||||
// Sets the scenario while disregarding the returned task. This prevents current scenario from being null when starting in manual mode.
|
|
||||||
_ = ChangeScenario(scenario);
|
|
||||||
}
|
}
|
||||||
|
// Activates the scenario to prevent _currentScenario from being null when starting in manual mode.
|
||||||
|
ChangeScenario(scenario);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue