mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-05-06 04:43:33 +02:00
Alternate fix for use-after-free error.
This commit is contained in:
@@ -381,7 +381,7 @@ void ScrollingList::update(float dt)
|
||||
Component::update(dt);
|
||||
|
||||
if(components_.size() == 0) return;
|
||||
if(!items_ || items_->size() == 0) return;
|
||||
if(!items_) return;
|
||||
|
||||
for(unsigned int i = 0; i < scrollPoints_->size(); i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user