forked from mirror/OpenTTD
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron)
-CodeLayout: Remove trailing spaces and Windows linebreaks
This commit is contained in:
4
ttd.c
4
ttd.c
@@ -279,10 +279,10 @@ void LoadDriver(int driver, const char *name)
|
||||
error("No such %s driver: %s\n", dc->name, buffer);
|
||||
}
|
||||
var = dc->var;
|
||||
if (*var != NULL) ((HalCommonDriver*)*var)->stop();
|
||||
if (*var != NULL) ((const HalCommonDriver*)*var)->stop();
|
||||
*var = NULL;
|
||||
drv = dd->drv;
|
||||
if ((err=((HalCommonDriver*)drv)->start(parms)) != NULL)
|
||||
if ((err=((const HalCommonDriver*)drv)->start(parms)) != NULL)
|
||||
error("Unable to load driver %s(%s). The error was: %s\n", dd->name, dd->longname, err);
|
||||
*var = drv;
|
||||
}
|
||||
|
Reference in New Issue
Block a user