diff --git a/source/SongLoad.hx b/source/SongLoad.hx index 0d50bf8fc..842cadf2e 100644 --- a/source/SongLoad.hx +++ b/source/SongLoad.hx @@ -174,6 +174,8 @@ class SongLoad for (sectionIndex => section in noteStuff) { + if (section == null || section.sectionNotes == null) + continue; for (noteIndex => noteDataArray in section.sectionNotes) { var arrayDipshit:Array = cast noteDataArray; // crackhead diff --git a/source/play/stage/Stage.hx b/source/play/stage/Stage.hx index 51d7bbdbb..617974f85 100644 --- a/source/play/stage/Stage.hx +++ b/source/play/stage/Stage.hx @@ -97,6 +97,12 @@ class Stage extends FlxSpriteGroup implements IHook propSprite.active = false; } + if (propSprite.frames == null || propSprite.frames.numFrames == 0) + { + trace(' ERROR: Could not build texture for prop.'); + continue; + } + if (Std.isOfType(dataProp.scale, Array)) { propSprite.scale.set(dataProp.scale[0], dataProp.scale[1]);