Skip to content

Commit 9ca0b37

Browse files
authoredMar 5, 2020
Fix memory leak in protocol 38 set_sky
1 parent db95ff2 commit 9ca0b37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/network/clientpackethandler.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1244,12 +1244,11 @@ void Client::handleCommand_HudSetSky(NetworkPacket* pkt)
12441244
skybox.bgcolor = video::SColor(readARGB8(is));
12451245
skybox.type = std::string(deSerializeString(is));
12461246
u16 count = readU16(is);
1247-
std::vector<std::string>* params = new std::vector<std::string>;
12481247

12491248
for (size_t i = 0; i < count; i++)
12501249
skybox.textures.emplace_back(deSerializeString(is));
12511250

1252-
bool clouds = true;
1251+
skybox.clouds = true;
12531252
try {
12541253
skybox.clouds = readU8(is);
12551254
} catch (...) {}

0 commit comments

Comments
 (0)
Please sign in to comment.