mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* Fix an accidental memory leak in the client side loader
This commit is contained in:
@@ -61,7 +61,7 @@ void LevelDataPacket::write(RakNet::BitStream* pbs)
|
||||
if (pCompressedData)
|
||||
{
|
||||
float ratio = 100.0f * float(compSize) / float(uncompSize);
|
||||
LogMsg("Compression ratio: %.2f (%d comp, %d uncomp)", ratio, int(compSize), int(uncompSize));
|
||||
//LogMsg("Compression ratio: %.2f (%d comp, %d uncomp)", ratio, int(compSize), int(uncompSize));
|
||||
|
||||
int cs2 = int(compSize), us2 = int(uncompSize);
|
||||
bs.Reset();
|
||||
@@ -73,7 +73,7 @@ void LevelDataPacket::write(RakNet::BitStream* pbs)
|
||||
}
|
||||
else
|
||||
{
|
||||
LogMsg("Level not compressed.");
|
||||
//LogMsg("Level not compressed.");
|
||||
}
|
||||
|
||||
pbs->Write(bs);
|
||||
|
||||
Reference in New Issue
Block a user