Crash fix
This commit is contained in:
@@ -17,6 +17,10 @@ void CapturePointHUDSystem::Update(double dt)
|
|||||||
auto CapturePointHUDElements = m_World->GetComponents("CapturePointHUD");
|
auto CapturePointHUDElements = m_World->GetComponents("CapturePointHUD");
|
||||||
auto CapturePoints = m_World->GetComponents("CapturePoint");
|
auto CapturePoints = m_World->GetComponents("CapturePoint");
|
||||||
|
|
||||||
|
if(!CapturePointHUDElements) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (auto& cCapturePointHUD : *CapturePointHUDElements) {
|
for (auto& cCapturePointHUD : *CapturePointHUDElements) {
|
||||||
int HUD_ID = cCapturePointHUD["CapturePointNumber"];
|
int HUD_ID = cCapturePointHUD["CapturePointNumber"];
|
||||||
EntityWrapper entityHUD = EntityWrapper(m_World, cCapturePointHUD.EntityID);
|
EntityWrapper entityHUD = EntityWrapper(m_World, cCapturePointHUD.EntityID);
|
||||||
|
|||||||
Reference in New Issue
Block a user