This commit is contained in:
Henrik Rydgård committed 2024-10-10 12:19:53 +02:00
1 parent 3ef2ed32f3
commit 9c5cda3487
3 files changed
+3 -9

No files matched your search

+2 -2
View File
@@ -573,7 +573,7 @@ void StoreScreen::CreateViews() {
ProductItemView *StoreScreen::GetSelectedItem() {
for (int i = 0; i < scrollItemView_->GetNumSubviews(); ++i) {
ProductItemView *item = dynamic_cast<ProductItemView *>(scrollItemView_->GetViewByIndex(i));
ProductItemView *item = static_cast<ProductItemView *>(scrollItemView_->GetViewByIndex(i));
if (!item) {
continue;
}
@@ -585,7 +585,7 @@ ProductItemView *StoreScreen::GetSelectedItem() {
}
UI::EventReturn StoreScreen::OnGameSelected(UI::EventParams &e) {
ProductItemView *item = dynamic_cast<ProductItemView *>(e.v);
ProductItemView *item = static_cast<ProductItemView *>(e.v);
if (!item)
return UI::EVENT_DONE;