aboutsummaryrefslogtreecommitdiff
path: root/src/login.hh
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-08-15 14:59:56 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-08-15 14:59:56 -0300
commit783578d28ec6f7d61e7a4b55c608f4f54b725df7 (patch)
treebf7e1868b73a662c2fbf5cef9e0a0cc071c6e4b4 /src/login.hh
parentbaaeac349dc5da2cb4892662c69566a98a66a124 (diff)
downloadlogin-783578d28ec6f7d61e7a4b55c608f4f54b725df7.tar.gz
login-783578d28ec6f7d61e7a4b55c608f4f54b725df7.zip
wrapping up for a public release
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);
}
}