Whiteboard/side_actions: test to try and diagnose a problem under msvc 9.

This commit is contained in:
Gabriel Morin 2010-10-11 01:58:58 +00:00
parent 297e8917f4
commit 9744d8bacd

View file

@ -513,8 +513,7 @@ side_actions::iterator side_actions::find_last_action_of(unit const* unit, side_
reverse_iterator position(start_position);
for (--position ; position != rend(); ++position)
{
action_ptr action = *position;
if (action->get_unit() == unit)
if ((*position)->get_unit() == unit)
{
iterator found_position = position.base();
//need to decrement after changing from reverse to regular operator