mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
Index error
This commit is contained in:
parent
b948ff2dc8
commit
a6f57cb7e2
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ ChessGame.update = function() {
|
|||
if (ChessGame.pieces.length > 0) {
|
||||
var unknown = 0;
|
||||
ChessGame.board.userDataObject.pieces = new Array();
|
||||
for(var i = 1; i < ChessGame.pieces.length; i++) {
|
||||
for(var i = 0; i < ChessGame.pieces.length; i++) {
|
||||
ChessGame.pieces[i].entity = Entities.identifyEntity(ChessGame.pieces[i].entity);
|
||||
if (ChessGame.pieces[i].entity.isKnownID) {
|
||||
ChessGame.board.userDataObject.pieces.push(ChessGame.pieces[i].entity)
|
||||
|
|
Loading…
Reference in a new issue