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 3030901..f971991 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;