diff --git a/src/loader/Cache.js b/src/loader/Cache.js index 582034bac..86911c9eb 100644 --- a/src/loader/Cache.js +++ b/src/loader/Cache.js @@ -1312,7 +1312,8 @@ Phaser.Cache.prototype = { { if (clone) { - return Phaser.Utils.extend(true, {}, data); + var base = Array.isArray(data) ? [] : {}; + return Phaser.Utils.extend(true, base, data); } else {