Fix crash when we tried to update an addons from the addons update screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6231 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -161,7 +161,7 @@ void AddonsLoading::onUpdate(float delta)
|
||||
void AddonsLoading::close()
|
||||
{
|
||||
|
||||
GUIEngine::Screen* curr_screen = GUIEngine::getCurrentScreen();
|
||||
AddonsScreen* curr_screen = AddonsScreen::getInstance();
|
||||
pthread_mutex_lock(&(((AddonsScreen*)curr_screen)->mutex));
|
||||
((AddonsScreen*)curr_screen)->can_load_list = true;
|
||||
pthread_mutex_unlock(&(((AddonsScreen*)curr_screen)->mutex));
|
||||
|
||||
Reference in New Issue
Block a user