mirror of https://github.com/axmolengine/axmol.git
Update byte_buffer to fix #741
This commit is contained in:
parent
3533d574f8
commit
cb45692a0d
|
@ -107,7 +107,7 @@ public:
|
|||
void push_back(const _Ty& val)
|
||||
{
|
||||
assert(_stride == sizeof(_Ty));
|
||||
_buffer.append_n((uint8_t*)&val, _stride);
|
||||
_buffer.insert(_buffer.end(), &val, &val + 1);
|
||||
}
|
||||
|
||||
/** Inserts a list containing unsigned int (uint16_t/uint32_t) data. */
|
||||
|
|
Loading…
Reference in New Issue