Fix equal oparator

This commit is contained in:
Mitchell McCaffrey 2020-04-19 17:38:03 +10:00
parent ad236d6e6a
commit 16cca15872

View File

@ -159,7 +159,7 @@ function Game() {
if (mapDrawActions) {
peer.connection.send({ id: "mapDraw", data: mapDrawActions });
}
if (mapDrawActionIndex != mapDrawActions.length - 1) {
if (mapDrawActionIndex !== mapDrawActions.length - 1) {
peer.connection.send({ id: "mapDrawIndex", data: mapDrawActionIndex });
}
}