1
0
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:
Richard Jenkins
2017-04-21 16:56:53 +01:00
committed by Michał Janiszewski
parent 7a50a52582
commit cbf689d4ec

View File

@@ -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]) {