aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <machiaveltman@gmail.com>2012-02-29 10:41:24 -0800
committerMachiavelli <machiaveltman@gmail.com>2012-02-29 10:41:24 -0800
commit3a4ec8a0b89d598b7586eda339d8b2ad07156a1a (patch)
treeb8c72b0f539440cd09d7db7845d2c3dc90af6e19 /src
parent56536a6af5ae2e80da34d8aa85523d9671701f5e (diff)
parent8e18726b69c6c700e0e36b7858ac786e5f4ae490 (diff)
Merge pull request #5491 from teyrnon/master
BytebufferException fix
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/shared/Packets/ByteBuffer.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/server/shared/Packets/ByteBuffer.h b/src/server/shared/Packets/ByteBuffer.h
index 3cd6ff73b1e..e6fdcf0f202 100755
--- a/src/server/shared/Packets/ByteBuffer.h
+++ b/src/server/shared/Packets/ByteBuffer.h
@@ -30,11 +30,9 @@ class ByteBufferException
ByteBufferException(size_t pos, size_t size, size_t valueSize)
: Pos(pos), Size(size), ValueSize(valueSize)
{
- PrintError();
}
protected:
- virtual void PrintError() const = 0;
size_t Pos;
size_t Size;
@@ -45,7 +43,10 @@ class ByteBufferPositionException : public ByteBufferException
{
public:
ByteBufferPositionException(bool add, size_t pos, size_t size, size_t valueSize)
- : ByteBufferException(pos, size, valueSize), _add(add) {}
+ : ByteBufferException(pos, size, valueSize), _add(add)
+ {
+ PrintError();
+ }
protected:
void PrintError() const
@@ -62,7 +63,10 @@ class ByteBufferSourceException : public ByteBufferException
{
public:
ByteBufferSourceException(size_t pos, size_t size, size_t valueSize)
- : ByteBufferException(pos, size, valueSize) {}
+ : ByteBufferException(pos, size, valueSize)
+ {
+ PrintError();
+ }
protected:
void PrintError() const