Fix more dynamic pointer strict casts to parent components (when they shouldn't be). Fixed double updating bug for components in ScrollableWindowComponents.

This commit is contained in:
2024-01-16 17:48:43 -06:00
parent 848d0e4816
commit bc1a1c6876
4 changed files with 12 additions and 6 deletions
+6 -2
View File
@@ -239,10 +239,14 @@ void Menu::Update(AiL*game){
}
for(auto&[key,component]:components){
component->_BeforeUpdate(game);
if(component->renderInMain){
component->_BeforeUpdate(game);
}
}
for(auto&[key,component]:components){
component->_Update(game);
if(component->renderInMain){
component->_Update(game);
}
}
};