mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Make ClientInterface::statenames consistent with the state enum again
Fixes minetest.get_player_information segfault due to out of bounds access problems, when compiled as debug build.
This commit is contained in:
@@ -167,6 +167,9 @@ namespace con {
|
||||
|
||||
#define CI_ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
// Also make sure to update the ClientInterface::statenames
|
||||
// array when modifying these enums
|
||||
|
||||
enum ClientState
|
||||
{
|
||||
CS_Invalid,
|
||||
|
Reference in New Issue
Block a user