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:
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user