mirror of https://github.com/OpenTTD/OpenTTD
(svn r2072) Use lengthof() instead of a home brewed version
parent
67d2ada020
commit
7340aa5b8e
|
@ -71,4 +71,4 @@ CommandCallback *_callback_table[] = {
|
||||||
/* 0x14 */ CcTerraform
|
/* 0x14 */ CcTerraform
|
||||||
};
|
};
|
||||||
|
|
||||||
const int _callback_table_count = sizeof (_callback_table) / sizeof (*_callback_table);
|
const int _callback_table_count = lengthof(_callback_table);
|
||||||
|
|
Loading…
Reference in New Issue