Skip to content

Fix unbound access in getRandomVehicleColour for ids 610 and 611 #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/Server/Components/Vehicles/vehicle_colours.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ inline void getRandomVehicleColour(int modelid, int& colour1, int& colour2, int&
1156, // 607 - bagboxb
1156, // 608 - tugstair
1157, // 609 - boxburg
1158, // 610 - farmtr1
1158, // 611 - utiltr1
1157, // 610 - farmtr1
1157, // 611 - utiltr1
1158
};

Expand Down