Fix useless temporary sf::Lock

This commit is contained in:
Vittorio Romeo 2021-11-19 20:38:07 +00:00 committed by Lukas Dürrenberger
parent 2888d9c56e
commit c21e842007

View File

@ -41,7 +41,7 @@ ResourceStream::ResourceStream(const std::string& filename) :
m_file (NULL) m_file (NULL)
{ {
ActivityStates* states = getActivity(NULL); ActivityStates* states = getActivity(NULL);
Lock(states->mutex); Lock lock(states->mutex);
m_file = AAssetManager_open(states->activity->assetManager, filename.c_str(), AASSET_MODE_UNKNOWN); m_file = AAssetManager_open(states->activity->assetManager, filename.c_str(), AASSET_MODE_UNKNOWN);
} }