mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 13:22:48 +01:00
Core: Added 4.3.4 opcodes from WPP, commented out some code to fix compile (switches with opcodes - duplicate case 0: labels) and fixed authentication
This commit is contained in:
@@ -564,11 +564,21 @@ class ByteBuffer
|
||||
|
||||
std::string ReadString()
|
||||
{
|
||||
std::string s = 0;
|
||||
std::string s;
|
||||
(*this) >> s;
|
||||
return s;
|
||||
}
|
||||
|
||||
std::string ReadString(uint32 length)
|
||||
{
|
||||
char* buffer = new char[length + 1];
|
||||
memset(buffer, 0, length + 1);
|
||||
read((uint8*)buffer, length);
|
||||
std::string retval = buffer;
|
||||
delete[] buffer;
|
||||
return retval;
|
||||
}
|
||||
|
||||
bool ReadBoolean()
|
||||
{
|
||||
uint8 b = 0;
|
||||
|
||||
Reference in New Issue
Block a user