forked from rosebudai/OpenRCT2-Web
Verify NetworkActions access
This commit is contained in:
1 parent
67d4ff83e5
commit
82d52b63e6
1 file changed
+6
-1
@@ -2296,7 +2296,12 @@ int network_get_num_actions()
|
||||
|
||||
rct_string_id network_get_action_name_string_id(unsigned int index)
|
||||
{
|
||||
return NetworkActions::Actions[index].Name;
|
||||
if (index < NetworkActions::Actions.size())
|
||||
{
|
||||
return NetworkActions::Actions[index].Name;
|
||||
} else {
|
||||
return STR_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
int network_can_perform_action(unsigned int groupindex, unsigned int index)
|
||||
|
||||
Reference in new issue
Block a user