summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratox.c b/ratox.c
index d5ca466..daf40ef 100644
--- a/ratox.c
+++ b/ratox.c
@@ -495,7 +495,7 @@ sendfriendcalldata(struct friend *f)
return;
} else if (n < 0) {
return;
- } else if (n == (framesize * sizeof(int16_t) - (f->av.state & INCOMPLETE) * f->av.n)) {
+ } else if (n == (framesize * sizeof(int16_t) - (f->av.state & INCOMPLETE ? f->av.n : 0))) {
f->av.state &= ~INCOMPLETE;
f->av.n = 0;
} else {