mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 01:02:56 +08:00
Add back null check
This commit is contained in:
parent
c03e47317a
commit
8e0049c005
@ -77,7 +77,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing.Colour
|
|||||||
TaikoDifficultyHitObject? previousObject = taikoObject.PreviousNote(0);
|
TaikoDifficultyHitObject? previousObject = taikoObject.PreviousNote(0);
|
||||||
|
|
||||||
// If this is the first object in the list or the colour changed, create a new mono encoding
|
// If this is the first object in the list or the colour changed, create a new mono encoding
|
||||||
if (currentEncoding == null || (taikoObject.BaseObject as Hit)?.Type != (previousObject?.BaseObject as Hit)?.Type)
|
if (currentEncoding == null || previousObject == null || (taikoObject.BaseObject as Hit)?.Type != (previousObject.BaseObject as Hit)?.Type)
|
||||||
{
|
{
|
||||||
currentEncoding = new MonoEncoding();
|
currentEncoding = new MonoEncoding();
|
||||||
encodings.Add(currentEncoding);
|
encodings.Add(currentEncoding);
|
||||||
|
Loading…
Reference in New Issue
Block a user