chiark / gitweb /
Correctly bracket check for resuming with a pause-incapable standalone
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 2 May 2009 10:14:34 +0000 (11:14 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 2 May 2009 10:14:34 +0000 (11:14 +0100)
player (which shouldn't happen in the first place, so the bug as it
was was actually pretty harmless).

server/play.c

index 303090107e4cf400f17bc7f894355366b457c273..f9719912f7f0b62d4c7db982cb37c7710dce962d 100644 (file)
@@ -763,7 +763,7 @@ void resume_playing(const char *who) {
   if(!playing) return;
   switch(playing->type & DISORDER_PLAYER_TYPEMASK) {
   case DISORDER_PLAYER_STANDALONE:
-    if(!playing->type & DISORDER_PLAYER_PAUSES) {
+    if(!(playing->type & DISORDER_PLAYER_PAUSES)) {
     default:
       /* Shouldn't happen */
       return;