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-861f7616d084
master
Freddie Witherden 2008-07-03 16:19:41 +00:00
parent 693c8292ff
commit c152583935
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}