Fix compilation with C# disabled

This commit is contained in:
Wojtek Figat
2023-04-05 19:39:04 +02:00
parent a9b706becf
commit f4e62afe8a
2 changed files with 8 additions and 3 deletions

View File

@@ -1228,7 +1228,7 @@ bool Variant::operator==(const Variant& other) const
#elif USE_MONO
return AsUint == other.AsUint || MCore::GCHandle::GetTarget(AsUint) == MCore::GCHandle::GetTarget(other.AsUint);
#else
return nullptr;
return false;
#endif
default:
return false;
@@ -1324,7 +1324,7 @@ Variant::operator bool() const
#elif USE_MONO
return AsUint != 0 && MCore::GCHandle::GetTarget(AsUint) != nullptr;
#else
return nullptr;
return false;
#endif
default:
return false;