fix objectData writer

This commit is contained in:
Andrew Kelley 2013-02-03 14:32:14 -05:00
parent 174481fc2a
commit b335f201a8

View file

@ -541,7 +541,7 @@ EntityMetadataWriter.prototype.write = function(buffer, offset) {
function ObjectDataWriter(value) {
this.value = value;
this.size = value === 0 ? 4 : 10;
this.size = value.intField === 0 ? 4 : 10;
}
ObjectDataWriter.prototype.write = function(buffer, offset) {