From e7671c31bb548729ac83fa57c8440e8caca105df Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 14 Mar 2012 01:35:37 +0000 Subject: [PATCH] Fix empty hold theft. --- xtrn/tw2/players.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtrn/tw2/players.js b/xtrn/tw2/players.js index 47cffb484d..9bee83df7b 100644 --- a/xtrn/tw2/players.js +++ b/xtrn/tw2/players.js @@ -195,7 +195,7 @@ function AttackPlayer() var j; console.writeln("You destroyed the ship and salvaged these cargo holds:"); - var holds=new Array(Commodities.length); + var holds=new Array(Commodities.length+1); for(i=0; i<holds.length; i++) holds[i]=0; for(i=0; i<otherplayer.Holds; i++) { -- GitLab