From ad32842fa45c8afcc6c049da3226e9e844137987 Mon Sep 17 00:00:00 2001 From: samme Date: Wed, 22 Jun 2022 17:49:40 -0700 Subject: [PATCH] Fix Phaser.Display.RGB#equals() --- src/display/RGB.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/RGB.js b/src/display/RGB.js index 16b559fcd..2200c57de 100644 --- a/src/display/RGB.js +++ b/src/display/RGB.js @@ -103,7 +103,7 @@ var RGB = new Class({ { var rgb = this._rgb; - return (rgb.r === red && rgb.g === green && rgb.b === blue); + return (rgb[0] === red && rgb[1] === green && rgb[2] === blue); }, /**