Fix a bug in vectorMap that could result in a segfault.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5357 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
693c8292ff
commit
c152583935
|
@ -96,7 +96,7 @@ void vectorMap(vector *v, mapCallback cb)
|
|||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < v->size; i++)
|
||||
for (i = 0; i < v->head; i++)
|
||||
{
|
||||
cb(v->mem[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue