don't allow StringToX for *_INVALID values

This commit is contained in:
Chris Danford
2005-03-05 21:50:33 +00:00
parent 2d2796148b
commit b60d135493
11 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ static const CString ElementCategoryNames[NUM_ELEMENT_CATEGORIES] = {
"Sounds",
"Other"
};
XToString( ElementCategory );
XToString( ElementCategory, NUM_ELEMENT_CATEGORIES );
StringToX( ElementCategory );
static void LuaElementCategory(lua_State* L)
{