Skip to content

Commit e301a44

Browse files
committed
Fix compile
1 parent 13e726c commit e301a44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Server/mods/deathmatch/logic/CBuilding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void CBuilding::SetRotation(const CVector& vecRotation)
185185
m_vecRotation = vecRotation;
186186
}
187187

188-
bool CBuilding::SetLowLodBuilding(CBuilding* pNewLowLodBuilding)
188+
bool CBuilding::SetLowLodBuilding(CBuilding* pNewLowLodBuilding) noexcept
189189
{
190190
// Set or clear?
191191
if (!pNewLowLodBuilding)

Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ bool CStaticFunctionDefinitions::SetLowLodElement(CElement* pElement, CElement*
839839
CBuilding* pLowLodObject = nullptr;
840840
if (pLowLodElement && pLowLodElement->GetType() == CElement::BUILDING)
841841
pLowLodObject = static_cast<CBuilding*>(pLowLodElement);
842-
if (!pBuilding->SetLowLodObject(pLowLodObject))
842+
if (!pBuilding->SetLowLodBuilding(pLowLodObject))
843843
return false;
844844
break;
845845
}
@@ -894,7 +894,7 @@ bool CStaticFunctionDefinitions::IsElementLowLod(CElement* pElement, bool& bOutI
894894
}
895895
case CElement::BUILDING:
896896
{
897-
bOutIsLowLod = static_cast<CBuilding*>(pElement)->GetHighLodObject() ? true : false;
897+
bOutIsLowLod = static_cast<CBuilding*>(pElement)->GetHighLodBuilding() ? true : false;
898898
break;
899899
}
900900
default:

0 commit comments

Comments
 (0)