Skip to content

Commit 5233a55

Browse files
Made workaround for xrGame CTD better.
1 parent 7309acb commit 5233a55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/xrGame/Entity.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,19 +331,19 @@ void CEntity::shedule_Update(u32 dt)
331331
try {
332332
lDestroy = getDestroy();
333333
}
334-
catch (std::exception& e) {
334+
catch (...) {
335335
Msg("RELEASE CONFIGURATION FIX: lDestroy failed");
336336
}
337337
try {
338338
lAlive = g_Alive();
339339
}
340-
catch (std::exception& e) {
340+
catch (...) {
341341
Msg("RELEASE CONFIGURATION FIX: lAlive failed");
342342
}
343343
try {
344344
lKillerId = m_killer_id != u16(-1);
345345
}
346-
catch (std::exception& e) {
346+
catch (...) {
347347
Msg("RELEASE CONFIGURATION FIX: lKillerId failed");
348348
}
349349
try {
@@ -357,7 +357,7 @@ void CEntity::shedule_Update(u32 dt)
357357
}
358358
}
359359
}
360-
catch (std::exception& e) {
360+
catch (...) {
361361
Msg("RELEASE CONFIGURATION FIX: if block failed");
362362
}
363363
}

0 commit comments

Comments
 (0)