diff --git a/Source/Contents/Skills/SkillActionKarnos.cpp b/Source/Contents/Skills/SkillActionKarnos.cpp index 2fe00bf52..7a76ae25f 100644 --- a/Source/Contents/Skills/SkillActionKarnos.cpp +++ b/Source/Contents/Skills/SkillActionKarnos.cpp @@ -295,18 +295,18 @@ void CSkillAction_KR_EARTH_DRILL::OnSkillHit(int level, CGameActor* source, CGam EffectLists* effects = g_effectMgr; effects->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId([] { - constexpr std::array effectSourceArray = CRYPT_NAME("earth_drill", 0xC52FB5FBB94FF917ULL); - const std::uint8_t (&effectSource)[12] = effectSourceArray._Elems; - thread_local EncryptedName effectName(effectSource); - return effectName.Text(); + constexpr auto bytesText = CRYPT_NAME("earth_drill", 0xC52FB5FBB94FF917ULL); + const auto& bytes = bytesText.data; + thread_local EncryptedName name(bytes); + return name.Text(); }()), vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0); effects = g_effectMgr; effects->Spawn(source->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId([] { - constexpr std::array bottomSourceArray = CRYPT_NAME("earth_drill_bottom", 0x93E7A3A1F587CDC5ULL); - const std::uint8_t (&bottomSource)[19] = bottomSourceArray._Elems; - thread_local EncryptedName bottomName(bottomSource); - return bottomName.Text(); + constexpr auto bytesText = CRYPT_NAME("earth_drill_bottom", 0x93E7A3A1F587CDC5ULL); + const auto& bytes = bytesText.data; + thread_local EncryptedName name(bytes); + return name.Text(); }()), vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0); }