mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 00:49:11 +00:00
(svn r6081) -Fix(6054) : Silenced a MSVC warning on compiling (thanks MaulinMonkey)
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user