Fix useless temporary sf::Lock
This commit is contained in:
parent
2888d9c56e
commit
c21e842007
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user