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:
@@ -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=='"')
|
||||
|
||||
Reference in New Issue
Block a user