Skip to content

Commit

Permalink
Merge pull request #42 from redFrik/disk-sample-player-safety
Browse files Browse the repository at this point in the history
do not crash when proto found
  • Loading branch information
danielmkarlsson authored Oct 25, 2024
2 parents 8905bca + 6968e0e commit 949b08e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/CleanEvent.sc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ CleanEvent {
~hash ?? { ~hash = ~snd.identityHash }; // just to be safe
};

if(currentEnvironment.proto[\disk].notNil, {
if(currentEnvironment.proto.notNil and:{currentEnvironment.proto[\disk].notNil}, {
cuedBuffer = Buffer.cueSoundFile(
server,
currentEnvironment.proto.path,
Expand Down

0 comments on commit 949b08e

Please sign in to comment.