mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Make DrawableHitObject's UpdateState safer by blocking calls at a higher level with not yet loaded.
UpdateState is called in LoadComplete for cases where the state may have changed before a load operation.
This commit is contained in:
@ -38,6 +38,9 @@ namespace osu.Game.Modes.Objects.Drawables
|
||||
return;
|
||||
state = value;
|
||||
|
||||
if (!IsLoaded)
|
||||
return;
|
||||
|
||||
UpdateState(state);
|
||||
|
||||
if (State == ArmedState.Hit)
|
||||
|
Reference in New Issue
Block a user