mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 04:53:12 +01:00
Reduce command array size in 'rides set type'
This commit is contained in:
committed by
Michał Janiszewski
parent
7a50a52582
commit
cbf689d4ec
@@ -468,7 +468,7 @@ static sint32 cc_rides(const utf8 **argv, sint32 argc)
|
||||
return 0;
|
||||
}
|
||||
if (strcmp(argv[1], "type") == 0) {
|
||||
bool int_valid[3] = { 0 };
|
||||
bool int_valid[2] = { 0 };
|
||||
sint32 ride_index = console_parse_int(argv[2], &int_valid[0]);
|
||||
sint32 type = console_parse_int(argv[3], &int_valid[1]);
|
||||
if (!int_valid[0] || !int_valid[1]) {
|
||||
|
||||
Reference in New Issue
Block a user