(svn r20864) -Codechange: Make AyStar_Clear() a method.

This commit is contained in:
alberth
2010-10-02 09:49:32 +00:00
parent d02baa4a11
commit cf03be6c88
3 changed files with 7 additions and 10 deletions

View File

@@ -1083,7 +1083,7 @@ void InitializeNPF()
first_init = false;
init_AyStar(&_npf_aystar, NPFHash, NPF_HASH_SIZE);
} else {
AyStarMain_Clear(&_npf_aystar);
_npf_aystar.Clear();
}
_npf_aystar.loops_per_tick = 0;
_npf_aystar.max_path_cost = 0;