Revision: 2789 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2789&view=rev Author: ulteq Date: 2012-06-06 22:26:39 +0000 (Wed, 06 Jun 2012) Log Message: ----------- -Fix: fixes #692
Modified Paths: -------------- trunk/source/main/physics/BeamForcesEuler.cpp trunk/source/main/physics/input_output/SerializedRig.cpp Modified: trunk/source/main/physics/BeamForcesEuler.cpp =================================================================== --- trunk/source/main/physics/BeamForcesEuler.cpp 2012-06-06 22:26:01 UTC (rev 2788) +++ trunk/source/main/physics/BeamForcesEuler.cpp 2012-06-06 22:26:39 UTC (rev 2789) @@ -1736,7 +1736,7 @@ if (trucks[i]->state==DESACTIVATED && trucks[i]->importcommands) { // forward commands - for (int j=1; j<MAX_COMMANDS; j++) + for (int j=1; j<=MAX_COMMANDS; j++) trucks[i]->commandkey[j].commandValue = commandkey[j].commandValue; // just send brake and lights to the connected truck, and no one else :) Modified: trunk/source/main/physics/input_output/SerializedRig.cpp =================================================================== --- trunk/source/main/physics/input_output/SerializedRig.cpp 2012-06-06 22:26:01 UTC (rev 2788) +++ trunk/source/main/physics/input_output/SerializedRig.cpp 2012-06-06 22:26:39 UTC (rev 2789) @@ -2893,7 +2893,7 @@ } //verify array limits so we don't overflow - if (keys >= MAX_COMMANDS || keyl >= MAX_COMMANDS) + if (keys > MAX_COMMANDS || keyl > MAX_COMMANDS) { parser_warning(c, "Command key invalid", PARSER_ERROR); continue; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Rigsofrods-devel mailing list Rigsofrods-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel