[DiscordArchive] How exactly does it not work?
[DiscordArchive] How exactly does it not work?
Archived author: Thanathros • Posted: 2021-11-15T09:44:10.228000+00:00
Original source
Yeah it's redundant but it works.
Archived author: セーラム • Posted: 2021-11-15T09:44:20.704000+00:00
Original source
hm
Archived author: セーラム • Posted: 2021-11-15T09:44:25.369000+00:00
Original source
weell, got warn
Archived author: セーラム • Posted: 2021-11-15T09:44:27.653000+00:00
Original source
/home/trinity/TrinityCore/src/server/game/Entities/Unit/Unit.cpp:2338:9: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
return 1.0f;
^
/home/trinity/TrinityCore/src/server/game/Entities/Unit/Unit.cpp:2336:5: note: previous statement is here
if (!spellInfo->MaxLevel || GetLevel() < spellInfo->MaxLevel)
Archived author: セーラム • Posted: 2021-11-15T09:44:51.258000+00:00
Original source
will try to use this one then
Archived author: Thanathros • Posted: 2021-11-15T09:44:53.991000+00:00
Original source
that's neglictable... and an easy fix
Archived author: Thanathros • Posted: 2021-11-15T09:45:14.301000+00:00
Original source
Just remove two spaces/one tab before second return 1.0f
Archived author: Thanathros • Posted: 2021-11-15T09:45:24.572000+00:00
Original source
Literally only thing you need to do.
Archived author: Morfium • Posted: 2021-11-15T09:45:41.569000+00:00
Original source
or use the brackets for if
Archived author: Thanathros • Posted: 2021-11-15T09:46:11.557000+00:00
Original source
Or that.
I still believe that the if statement makes no different and it should work well with my snippet.