Skip to content
Snippets Groups Projects
Commit e7671c31 authored by deuce's avatar deuce
Browse files

Fix empty hold theft.

parent ae806032
No related branches found
No related tags found
No related merge requests found
...@@ -195,7 +195,7 @@ function AttackPlayer() ...@@ -195,7 +195,7 @@ function AttackPlayer()
var j; var j;
console.writeln("You destroyed the ship and salvaged these cargo holds:"); 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++) for(i=0; i<holds.length; i++)
holds[i]=0; holds[i]=0;
for(i=0; i<otherplayer.Holds; i++) { for(i=0; i<otherplayer.Holds; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment