Fix a bug in TestAllMemberFunction and initialize a variable in cmpBattleDetection. Refs #2372.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14579 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'