From: Andre Noll Date: Sun, 6 Jul 2008 21:45:26 +0000 (+0200) Subject: Fix another bug in com_touch(). X-Git-Tag: v0.3.3~52^2~2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=74943155276117fe23d94180b5fc12cd8749ac22 Fix another bug in com_touch(). Only set the amp value if the -a option was given. --- diff --git a/aft.c b/aft.c index e29c15a0..922f0422 100644 --- a/aft.c +++ b/aft.c @@ -1981,7 +1981,8 @@ static int touch_audio_file(__a_unused struct osl_table *table, new_afsi.num_played = tad->cto->num_played; if (tad->cto->last_played >= 0) new_afsi.last_played = tad->cto->last_played; - new_afsi.amp = tad->cto->amp; + if (tad->cto->amp >= 0) + new_afsi.amp = tad->cto->amp; } tad->num_matches++; save_afsi(&new_afsi, &obj); /* in-place update */