Codefix: access pool via PoolItem, not the pool itself

This commit is contained in:
Rubidium
2025-02-01 00:27:43 +01:00
committed by rubidium42
parent 4ca1fe6c32
commit b4e3425a5f
2 changed files with 9 additions and 9 deletions

View File

@@ -214,7 +214,7 @@ std::tuple<CommandCost, StoryPageID> CmdCreateStoryPage(DoCommandFlag flags, Com
if (company != INVALID_COMPANY && !Company::IsValidID(company)) return { CMD_ERROR, INVALID_STORY_PAGE };
if (flags & DC_EXEC) {
if (_story_page_pool.items == 0) {
if (StoryPage::GetNumItems() == 0) {
/* Initialize the next sort value variable. */
_story_page_next_sort_value = 0;
}
@@ -262,7 +262,7 @@ std::tuple<CommandCost, StoryPageElementID> CmdCreateStoryPageElement(DoCommandF
if (flags & DC_EXEC) {
if (_story_page_element_pool.items == 0) {
if (StoryPageElement::GetNumItems() == 0) {
/* Initialize the next sort value variable. */
_story_page_element_next_sort_value = 0;
}