diff --git a/src/model/GameObject.js b/src/model/GameObject.js index e9209557..7f9afc97 100644 --- a/src/model/GameObject.js +++ b/src/model/GameObject.js @@ -108,7 +108,7 @@ GameObject.prototype.serialize = function serialize() { var k = keys[i]; if (k[0] !== '!') { var val = this[k]; - if (!_.isFunction(val)) { + if ((val && val.__isORP) || !_.isFunction(val)) { ret[k] = val; } }