From ada45e350645efd51ddc31ca90f9ed77d68792a7 Mon Sep 17 00:00:00 2001 From: boxgaming <75969133+boxgaming@users.noreply.github.com> Date: Tue, 15 Mar 2022 10:45:27 -0500 Subject: [PATCH] updated internal color method to convert simple color numbers to integer --- qb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qb.js b/qb.js index c1c7eb6..d63baa7 100644 --- a/qb.js +++ b/qb.js @@ -499,7 +499,7 @@ var QB = new function() { return c; } else if (!isNaN(c) && c >= 0 && c <= 255) { - return _colormap[c]; + return _colormap[parseInt(c)]; } return QB.func__RGB(0,0,0); }