[Change] Missed another /2 in binary pilot search.

This commit is contained in:
Allanis 2013-07-06 16:44:54 +01:00
parent ab277eabb4
commit 715fecfa03

View File

@ -120,7 +120,7 @@ Pilot* pilot_get(const unsigned int id) {
l = 0;
h = pilot_nstack-1;
while(l <= h) {
m = (l+h)/2;
m = (l+h)>>1;
if(pilot_stack[m]->id > id) h = m-1;
else if(pilot_stack[m]->id < id) l = m+1;
else return pilot_stack[m];