mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-02 21:42:17 +00:00
Working on login / world connection mostly there, fixed a few crashes with encryption on 0 length packets
This commit is contained in:
1 parent
0b8b41d91f
commit
f3e2af7e42
19 files changed
+441
-412
No files matched your search
+1
-5
@@ -26,11 +26,7 @@ namespace EQ {
|
||||
|
||||
template<typename T>
|
||||
T GetSerialize(size_t offset) const
|
||||
{
|
||||
if (T::size() > (Length() - offset)) {
|
||||
throw std::out_of_range("Packet::GetSerialize(), packet not large enough to cast to type.");
|
||||
}
|
||||
|
||||
{
|
||||
T ret;
|
||||
Util::MemoryStreamReader reader(((char*)Data() + offset), Length());
|
||||
cereal::BinaryInputArchive input(reader);
|
||||
|
||||
Reference in new issue
Block a user