Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Fix the issue for Sylas #230
Browse files Browse the repository at this point in the history
  • Loading branch information
R3nzTheCodeGOD committed Oct 31, 2022
1 parent 596985d commit 0daab26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R3nzSkin/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ void Hooks::init() const noexcept

for (auto i{ 0u }; i < heroes->length; ++i) {
if (const auto hero{ heroes->list[i] }; hero->get_character_data_stack()->stack.size() > 0) {
// Viego transforms into another champion as 2nd form, our own skin's id may not match for every champion.
if (const auto championName{ fnv::hash_runtime(hero->get_character_data_stack()->base_skin.model.str) }; championName == FNV("Viego"))
// Viego transforms into another champion as 2nd form, our own skin's id may not match for every champion. (same problem exists in sylas)
if (const auto championName{ fnv::hash_runtime(hero->get_character_data_stack()->base_skin.model.str) }; championName == FNV("Viego") || championName == FNV("Sylas"))
continue;

if (auto& stack{ hero->get_character_data_stack()->stack.front() }; stack.skin != hero->get_character_data_stack()->base_skin.skin) {
Expand Down

0 comments on commit 0daab26

Please sign in to comment.