clamp indexlist

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4734 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2009-11-26 12:05:53 +00:00
parent 7a052715ef
commit cbec4bbf02
+6 -1
View File
@@ -767,7 +767,12 @@ void explodelist(const char *s, vector<char *> &elems)
char *indexlist(const char *s, int pos)
{
whitespaceskip;
loopi(pos) elementskip, whitespaceskip;
loopi(pos)
{
elementskip;
whitespaceskip;
if(!*s) break;
}
const char *e = s;
elementskip;
if(*e=='"')