mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-23 22:49:09 +00:00
(svn r2072) Use lengthof() instead of a home brewed version
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user