From b4fb449e69cf5bf2cd3f650735854a061f153baf Mon Sep 17 00:00:00 2001 From: dongresource Date: Sun, 27 Sep 2020 01:00:31 +0200 Subject: [PATCH] Fix VS build. --- src/MobManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MobManager.cpp b/src/MobManager.cpp index b4ce744..ad93cfc 100644 --- a/src/MobManager.cpp +++ b/src/MobManager.cpp @@ -481,7 +481,7 @@ void MobManager::dotDamageOnOff(CNSocket *sock, CNPacketData *data) { void MobManager::dealGooDamage(CNSocket *sock, int amount) { size_t resplen = sizeof(sP_FE2CL_CHAR_TIME_BUFF_TIME_TICK) + sizeof(sSkillResult_DotDamage); assert(resplen < CN_PACKET_BUFFER_SIZE - 8); - uint8_t respbuf[resplen]; + uint8_t respbuf[CN_PACKET_BUFFER_SIZE]; memset(respbuf, 0, resplen);