mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fix optional comparison to integer value
This commit is contained in:
parent
366b119963
commit
52fb26c6cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user