diff --git a/dlls/gravgunmod.cpp b/dlls/gravgunmod.cpp index 07cf1f3c..de6db614 100644 --- a/dlls/gravgunmod.cpp +++ b/dlls/gravgunmod.cpp @@ -1715,8 +1715,8 @@ GGM_PlayerMenu &GGM_PlayerMenu::Add(const char *name, const char *command) return *this; } - strncpy( m_items[m_iCount].name, name, sizeof(m_items[m_iCount].name) - 1 ); - strncpy( m_items[m_iCount].command, command, sizeof(m_items[m_iCount].command) - 1 ); + strncpy( m_rgItems[m_iCount].szName, name, sizeof(m_rgItems[m_iCount].szName) - 1 ); + strncpy( m_rgItems[m_iCount].szCommand, command, sizeof(m_rgItems[m_iCount].szCommand) - 1 ); m_iCount++; return *this; } @@ -1761,7 +1761,7 @@ void GGM_PlayerMenu::Show() for( int i = 0; i < m_iCount; i++ ) { - sprintf( buf, MENU_STR(touch_settexture _sm%d "#%d. %s"\ntouch_show _sm%d\n), i+1, i+1, m_items[i].name, i + 1 ); + sprintf( buf, MENU_STR(touch_settexture _sm%d "#%d. %s"\ntouch_show _sm%d\n), i+1, i+1, m_rgItems[i].szName, i + 1 ); if( pPlayer ) CLIENT_COMMAND( pPlayer->edict(), buf); @@ -1776,7 +1776,7 @@ void GGM_PlayerMenu::Show() for( int i = 0; i < m_iCount; i++ ) { - pbuf += sprintf( pbuf, "^3%d.^7 %s\n", i+1, m_items[i].name); + pbuf += sprintf( pbuf, "^3%d.^7 %s\n", i+1, m_rgItems[i].szName); flags |= 1<edict() ); GGM::Cmd_Reset(); diff --git a/dlls/gravgunmod.h b/dlls/gravgunmod.h index 69c407de..f40b0b4a 100644 --- a/dlls/gravgunmod.h +++ b/dlls/gravgunmod.h @@ -86,9 +86,9 @@ class GGM_PlayerMenu { struct GGM_MenuItem { - char command[256]; - char name[32]; - } m_items[5]; + char szCommand[256]; + char szName[32]; + } m_rgItems[5]; int m_iCount; char m_sTitle[32]; bool m_fShow;