1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 18:25:16 +01:00

Fix #8121: Crash renaming park with server logging enabled. (#8177)

This commit is contained in:
ζeh Matt
2018-10-28 17:36:18 +01:00
committed by Michał Janiszewski
parent 73dae03601
commit 83c3f3a905
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
- Fix: [#8090] Maze designs saved incorrectly.
- Fix: [#8101] Title sequences window flashes after opening.
- Fix: [#8120] Crash trying to place peep spawn outside of map.
- Fix: [#8121] Crash Renaming park with server logging enabled.
- Improved: [#2940] Allow mouse-dragging to set patrol area (Singleplayer only).
- Improved: [#7730] Draw extreme vertical and lateral Gs red in the ride window's graph tab.
- Improved: [#7930] Automatically create folders for custom content.

View File

@@ -109,7 +109,7 @@ private:
void LogAction(const std::string& oldName) const
{
// Get player name
auto playerIndex = network_get_player_index(game_command_playerid);
auto playerIndex = network_get_player_index(GetPlayer());
auto playerName = network_get_player_name(playerIndex);
char logMessage[256];