diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-08-25 22:06:24 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-08-25 22:06:24 -0300 |
| commit | e72872d524b59faf1c962e2a5812d13517e2e807 (patch) | |
| tree | e9306e7ed2f73f4467f19abf41b2d14453b2e6e5 | |
| parent | 5b247aa5cd48b8c6a00e61fb3e68892b32d6a258 (diff) | |
| download | game-e72872d524b59faf1c962e2a5812d13517e2e807.tar.gz game-e72872d524b59faf1c962e2a5812d13517e2e807.zip | |
fix spellbook not displaying anything -- fixes #6
| -rw-r--r-- | src/magic.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/magic.cc b/src/magic.cc index 8c14634..c8dca44 100644 --- a/src/magic.cc +++ b/src/magic.cc @@ -3839,8 +3839,8 @@ void GetSpellbook(uint32 CharacterID, char *Buffer){ SpellNr < NARRAY(SpellList); SpellNr += 1){ int Level = (int)SpellList[SpellNr].Level; - if(Level > MaxLevel){ - Level = MaxLevel; + if(MaxLevel < Level){ + MaxLevel = Level; } } |
