Fix optional comparison to integer value

This commit is contained in:
Chris Thrasher 2024-06-09 21:17:56 -05:00
parent 366b119963
commit 52fb26c6cd

View File

@ -66,7 +66,7 @@ bool FileInputStream::open(const std::filesystem::path& filename)
if (priv::getActivityStatesPtr() != nullptr)
{
m_androidFile = std::make_unique<priv::ResourceStream>(filename);
return m_androidFile->tell() != -1;
return m_androidFile->tell().has_value();
}
#endif
#ifdef SFML_SYSTEM_WINDOWS