Fix #25745: Crash when a player connection is aborted early (#25811)

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2026-01-15 11:37:37 +01:00
1 parent 162977a84b
commit 839b5ee434
2 files changed
+5 -1

No files matched your search

+1
View File
@@ -2,6 +2,7 @@
------------------------------------------------------------------------
- Improved: [#25765] The ‘View options’ and ‘Special track elements’ dropdowns no longer need click-and-hold.
- Fix: [#25739] Game freezes when a tab in the New Ride window contains more than 384 items.
- Fix: [#25745] Crash when a player connection is aborted early.
- Fix: [#25799] The animated options tab icon of the news window does not always redraw.
0.4.30 (2026-01-04)
+4 -1
View File
@@ -547,7 +547,10 @@ namespace OpenRCT2::Network
if (!ProcessConnection(*connection))
{
LOG_INFO("Disconnecting player %s", connection->player->Name.c_str());
if (connection->player != nullptr)
LOG_INFO("Disconnecting player %s", connection->player->Name.c_str());
else
LOG_INFO("Disconnecting unknown player");
connection->Disconnect();
}
else