aboutsummaryrefslogtreecommitdiff
path: root/src/login.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/login.hh')
-rw-r--r--src/login.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login.hh b/src/login.hh
index 99c8ceb..aa391a1 100644
--- a/src/login.hh
+++ b/src/login.hh
@@ -290,7 +290,7 @@ struct TWriteBuffer{
}
void Rewrite16(int Position, uint16 Value){
- if((Position + 2) <= this->Position){
+ if((Position + 2) <= this->Position && !this->Overflowed()){
BufferWrite16LE(this->Buffer + Position, Value);
}
}