[0184] Fix ScriptDev2 Build under Windows.

NOTE:
 *ByteBuffer.cpp/.h need Sync with mangos/master and Update some for 4.3.4

Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
Salja 2012-08-25 23:52:02 +02:00 committed by Antz
parent f5be9ae4f5
commit 320e38b25b
3 changed files with 51 additions and 82 deletions

View file

@ -135,7 +135,10 @@ class ByteBuffer
}
// constructor
ByteBuffer(size_t res, bool init = false);
ByteBuffer(size_t res): _rpos(0), _wpos(0), _bitpos(8), _curbitval(0)
{
_storage.reserve(res);
}
// copy constructor
ByteBuffer(const ByteBuffer &buf) : _rpos(buf._rpos), _wpos(buf._wpos),