Skip to content

Commit 6941e0b

Browse files
authored
Fix #1171: setElementVisibleTo return value (#1601)
* Fix SetElementVisibleTo return value
1 parent e2aae99 commit 6941e0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,12 +1342,12 @@ bool CStaticFunctionDefinitions::SetElementVisibleTo(CElement* pElement, CElemen
13421342
{
13431343
CPerPlayerEntity* pEntity = static_cast<CPerPlayerEntity*>(pElement);
13441344
if (bVisible)
1345-
pEntity->AddVisibleToReference(pReference);
1345+
return pEntity->AddVisibleToReference(pReference);
13461346
else
1347-
pEntity->RemoveVisibleToReference(pReference);
1347+
return pEntity->RemoveVisibleToReference(pReference);
13481348
}
13491349

1350-
return true;
1350+
return false;
13511351
}
13521352

13531353
bool CStaticFunctionDefinitions::SetElementInterior(CElement* pElement, unsigned char ucInterior, bool bSetPosition, CVector& vecPosition)

0 commit comments

Comments
 (0)