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:
committed by
GitHub
parent
b628bba704
commit
0c3de1fa00
@@ -691,6 +691,10 @@ namespace OpenRCT2
|
||||
uint32_t actionType = 0;
|
||||
if (serialiser.IsSaving())
|
||||
{
|
||||
if (!command.action)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
actionType = command.action->GetType();
|
||||
}
|
||||
serialiser << actionType;
|
||||
|
||||
Reference in New Issue
Block a user