1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-17 21:12:34 +01:00

Fix potential nullptr dereference (#13149)

This fixes optimised builds on ARM
This commit is contained in:
Michał Janiszewski
2020-10-10 19:49:33 +02:00
committed by GitHub
parent b628bba704
commit 0c3de1fa00

View File

@@ -691,6 +691,10 @@ namespace OpenRCT2
uint32_t actionType = 0;
if (serialiser.IsSaving())
{
if (!command.action)
{
return false;
}
actionType = command.action->GetType();
}
serialiser << actionType;