WagicProject/wagic — pull request #573 by ZobyTwo (2013-11-29 17:38:03+00:00)
Title: Fix Valgrind warnings appearing during the test suit.

Please take a look if I did put the initialization parts into the right places (ctor/init ?). There remains one particular issue about AiPlayerBaka.cpp:1239 that reaches into the stl and hits set/map code. The stl accesses an uninitialized value for comparison here but I am not sure how to fix that.

```c++
if(a->getActionTc()->maxtargets == 1)
{
OrderedAIAction aiAction(this, a, c, t);
ranking[aiAction] = 1; // <-- this line
}
```

Please note that this patch also fixes the failing test in https://github.com/WagicProject/wagic/pull/572