Commit 5d9ffefe authored by deuce's avatar deuce
Browse files

Fix fencepost error, and ignore updates for players that arent in the

trader.dat file.
parent a5596fca
......@@ -3003,8 +3003,10 @@ function update(skip) {
for (i = 0; i < ufile.length; i++) {
if (i === player.Record)
continue;
if (i > players.length) {
if (i >= players.length) {
op = pfile.get(i);
if (op === null)
break;
players.push({x:op.x, y:op.y, map:op.map, onnow:op.onnow, busy:op.busy, battle:op.battle, deleted:op.deleted});
}
if (players[i].deleted)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment