Remove some unnecessary this == null checks

This commit is contained in:
Michael Cook (mackal)
2020-01-16 17:02:35 -05:00
parent a307747c29
commit 945ca1278c
2 changed files with 1 additions and 5 deletions
-3
View File
@@ -262,9 +262,6 @@ public:
}
ServerPacket* Copy() {
if (this == 0) {
return 0;
}
ServerPacket* ret = new ServerPacket(this->opcode, this->size);
if (this->size)
memcpy(ret->pBuffer, this->pBuffer, this->size);