diff options
Diffstat (limited to 'plugins/Watrack/srv_player.pas')
-rw-r--r-- | plugins/Watrack/srv_player.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Watrack/srv_player.pas b/plugins/Watrack/srv_player.pas index 07db406a8a..dff61191b5 100644 --- a/plugins/Watrack/srv_player.pas +++ b/plugins/Watrack/srv_player.pas @@ -365,9 +365,8 @@ begin begin
p:=PlyNum;
result:=WAT_RES_OK;
- inc(PlyNum);
- if PlyNum>PlyMax then // expand array when append
+ if PlyNum=PlyMax then // expand array when append
begin
if PlyMax=0 then
PlyMax:=StartSize
@@ -412,6 +411,7 @@ begin else
plyLink^[p].URL:=nil;
+ inc(PlyNum);
end
else // existing player
begin
|