mirror of https://github.com/OpenTTD/OpenTTD
(svn r6081) -Fix(6054) : Silenced a MSVC warning on compiling (thanks MaulinMonkey)
parent
909fd71a09
commit
9bb2a97e57
|
@ -1123,7 +1123,7 @@ static void GlobalSortSignList(void)
|
||||||
uint n = 0;
|
uint n = 0;
|
||||||
|
|
||||||
/* Create array for sorting */
|
/* Create array for sorting */
|
||||||
_sign_sort = realloc(_sign_sort, GetSignArraySize() * sizeof(_sign_sort[0]));
|
_sign_sort = realloc((void *)_sign_sort, GetSignArraySize() * sizeof(_sign_sort[0]));
|
||||||
if (_sign_sort == NULL) {
|
if (_sign_sort == NULL) {
|
||||||
error("Could not allocate memory for the sign-sorting-list");
|
error("Could not allocate memory for the sign-sorting-list");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue