aboutsummaryrefslogtreecommitdiffstats
path: root/code/botlib/be_aas_route.c
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-05 19:06:10 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-05 19:06:10 +0000
commit2ad7d3b71555eca328d0380e915cf52a18a4f95c (patch)
treed5229cc86cd1d2c153d4671c68187dfa901a5d36 /code/botlib/be_aas_route.c
parent3048e0d1b548bb66318575ee6cdb064a85a8f79d (diff)
downloadioquake3-aero-2ad7d3b71555eca328d0380e915cf52a18a4f95c.tar.gz
ioquake3-aero-2ad7d3b71555eca328d0380e915cf52a18a4f95c.zip
- put ALIGN macro into q_shared.h
- yet another alignment fix for botlib git-svn-id: svn://svn.icculus.org/quake3/trunk@282 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/botlib/be_aas_route.c')
-rw-r--r--code/botlib/be_aas_route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/botlib/be_aas_route.c b/code/botlib/be_aas_route.c
index 56b1613..de8cc03 100644
--- a/code/botlib/be_aas_route.c
+++ b/code/botlib/be_aas_route.c
@@ -521,7 +521,7 @@ void AAS_CalculateAreaTravelTimes(void)
//
size += settings->numreachableareas * sizeof(unsigned short *);
//
- size += settings->numreachableareas * revreach->numlinks * sizeof(unsigned short);
+ size += settings->numreachableareas * ALIGN(revreach->numlinks) * sizeof(unsigned short);
} //end for
//allocate memory for the area travel times
ptr = (char *) GetClearedMemory(size);
@@ -541,7 +541,7 @@ void AAS_CalculateAreaTravelTimes(void)
for (l = 0; l < settings->numreachableareas; l++)
{
aasworld.areatraveltimes[i][l] = (unsigned short *) ptr;
- ptr += revreach->numlinks * sizeof(unsigned short);
+ ptr += ALIGN(revreach->numlinks) * sizeof(unsigned short);
//reachability link
reach = &aasworld.reachability[settings->firstreachablearea + l];
//