mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 19:12:44 +03:00
fix(console): std::size not available in C++11
This commit is contained in:
parent
e257ab6c88
commit
532d63bdc5
@ -22,7 +22,7 @@ int32_t ConsoleCommand_Help(const char* command, const char* arguments) {
|
||||
char buffer[128];
|
||||
bool showCategories = *arguments == '\0';
|
||||
|
||||
auto numTranslation = std::size(s_translation);
|
||||
auto numTranslation = sizeof(s_translation) / sizeof(CategoryTranslation);
|
||||
|
||||
if (showCategories) {
|
||||
memset(buffer, 0, sizeof(buffer));
|
||||
@ -70,7 +70,7 @@ int32_t ConsoleCommand_Help(const char* command, const char* arguments) {
|
||||
}
|
||||
}
|
||||
|
||||
char* wr;
|
||||
const char* wr = nullptr;
|
||||
|
||||
if (buffer[0]) {
|
||||
auto comma = reinterpret_cast<char*>(SStrChrR(buffer, ','));
|
||||
|
Loading…
Reference in New Issue
Block a user