From: <geo...@us...> - 2014-02-03 00:33:27
|
Revision: 6817 http://sourceforge.net/p/freeorion/code/6817 Author: geoffthemedio Date: 2014-02-03 00:33:23 +0000 (Mon, 03 Feb 2014) Log Message: ----------- Attempt to fix ship production, which was broken during recent pointer-casting changes that erroneously replaced a GetSystem call with a pointer cast call. Modified Paths: -------------- trunk/FreeOrion/Empire/Empire.cpp Modified: trunk/FreeOrion/Empire/Empire.cpp =================================================================== --- trunk/FreeOrion/Empire/Empire.cpp 2014-02-02 21:48:20 UTC (rev 6816) +++ trunk/FreeOrion/Empire/Empire.cpp 2014-02-03 00:33:23 UTC (rev 6817) @@ -2774,7 +2774,7 @@ Logger().errorStream() << "Couldn't get build location for completed ship"; break; } - TemporaryPtr<System> system = boost::dynamic_pointer_cast<System>(build_location); + TemporaryPtr<System> system = GetSystem(build_location->SystemID()); // TODO: account for shipyards and/or other ship production // sites that are in interstellar space, if needed if (!system) { |