diff --git a/src/SFML/System/Android/ResourceStream.cpp b/src/SFML/System/Android/ResourceStream.cpp index 93280aa6..2dd24a20 100644 --- a/src/SFML/System/Android/ResourceStream.cpp +++ b/src/SFML/System/Android/ResourceStream.cpp @@ -41,7 +41,7 @@ ResourceStream::ResourceStream(const std::string& filename) : m_file (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); }