Skip to content

Commit aac4ff2

Browse files
committed
Merge pull request phaserjs#808 from muclemente/dev
Added undefined check processPixelRGB
2 parents 570e8ac + c882ebe commit aac4ff2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/BitmapData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Phaser.BitmapData.prototype = {
335335

336336
result = callback.call(callbackContext, pixel, tx, ty);
337337

338-
if (result !== false && result !== null)
338+
if (result !== false && result !== null && result !== undefined)
339339
{
340340
this.setPixel32(tx, ty, result.r, result.g, result.b, result.a, false);
341341
dirty = true;

0 commit comments

Comments
 (0)