Skip to content

Commit 5d2f510

Browse files
committed
Fix GF bopping when switching levels in the story menu.
1 parent de5fe9b commit 5d2f510

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

source/funkin/ui/story/Level.hx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,13 @@ class Level implements IRegistryEntry<LevelData>
201201

202202
if (_data.props.length == 0) return props;
203203

204-
var hiddenProps:Array<LevelProp> = props.splice(_data.props.length - 1, props.length - 1);
205-
for (hiddenProp in hiddenProps)
204+
// Hides unused props
205+
if (_data.props.length < props.length)
206206
{
207-
hiddenProp.visible = false;
207+
for (i in _data.props.length...props.length)
208+
{
209+
props[i].visible = false;
210+
}
208211
}
209212

210213
for (propIndex in 0..._data.props.length)

0 commit comments

Comments
 (0)