cyclus/core — pull request #263 by rwcarlsen (2012-07-17 15:49:06+00:00)
Title: message class bug fix

This addresses the issue discovered in https://github.com/cyclus/cycamore/issues/22. Incidentally, the problem was not setNextDest. It was logic errors in the sendOn and autoSetNextDest methods. Removing setNextDest from the API would have been a mistake and a partial solution to this subtle problem. I also added a check that makes the message class guard against segfaults from failed casts if its owner is not a Model*.

A special thanks to Katy for discovering it and nudging me enough to take a look at it.