1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

translation / 6 slots for big book

This commit is contained in:
Laserlicht
2025-07-08 10:11:17 +02:00
committed by GitHub
parent a37f918a15
commit c562aff7d2
4 changed files with 12 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ CSpellWindow::CSpellWindow(const CGHeroInstance * _myHero, CPlayerInterface * _m
for(const auto schoolId : LIBRARY->spellSchoolHandler->getAllObjects())
if(
!isLegacySpellSchool(schoolId) &&
customSpellSchools.size() < MAX_CUSTOM_SPELL_SCHOOLS &&
customSpellSchools.size() < (isBigSpellbook ? MAX_CUSTOM_SPELL_SCHOOLS_BIG : MAX_CUSTOM_SPELL_SCHOOLS) &&
!LIBRARY->spellSchoolHandler->getById(schoolId)->getSchoolBookmarkPath().empty() &&
!LIBRARY->spellSchoolHandler->getById(schoolId)->getSchoolHeaderPath().empty()
)