make if condition easier

This commit is contained in:
Felix Salcher 2025-06-04 15:38:56 +02:00
parent 50b4cdad48
commit 5fdd752df4
No known key found for this signature in database

View file

@ -367,7 +367,7 @@ bool CPasswordInputField::draw(const SRenderData& data) {
} else {
password.asset = g_pRenderer->asyncResourceGatherer->getAssetByID(password.resourceID);
if (password.asset != nullptr) {
if (password.asset) {
auto size = password.asset->texture.m_vSize;
double offset = (inputFieldBox.h - size.y) / 2.0;