mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r13239) -Fix: certain compilers give false warning about uninitialized variable
This commit is contained in:
parent
7fbfe54c74
commit
7672a059c9
@ -879,7 +879,7 @@ struct DepotWindow : Window {
|
|||||||
{
|
{
|
||||||
switch (widget) {
|
switch (widget) {
|
||||||
case DEPOT_WIDGET_MATRIX: {
|
case DEPOT_WIDGET_MATRIX: {
|
||||||
Vehicle *v;
|
Vehicle *v = NULL;
|
||||||
VehicleID sel = this->sel;
|
VehicleID sel = this->sel;
|
||||||
|
|
||||||
this->sel = INVALID_VEHICLE;
|
this->sel = INVALID_VEHICLE;
|
||||||
|
Loading…
Reference in New Issue
Block a user