Revision: 2536 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2536&view=rev Author: ulteq Date: 2012-05-10 08:05:57 +0000 (Thu, 10 May 2012) Log Message: ----------- -Fix: Refs #959
Modified Paths: -------------- trunk/source/main/physics/Beam.cpp trunk/source/main/physics/input_output/SerializedRig.cpp Modified: trunk/source/main/physics/Beam.cpp =================================================================== --- trunk/source/main/physics/Beam.cpp 2012-05-10 07:15:10 UTC (rev 2535) +++ trunk/source/main/physics/Beam.cpp 2012-05-10 08:05:57 UTC (rev 2536) @@ -323,13 +323,6 @@ state = NETWORKED; //required for proper loading } - // initialize commands - for (int i=0; i<MAX_COMMANDS; i++) - { - commandkey[i].commandValueState = -1; - commandkey[i].commandValue = 0; - } - // skidmark stuff useSkidmarks = BSETTING("Skidmarks", false); Modified: trunk/source/main/physics/input_output/SerializedRig.cpp =================================================================== --- trunk/source/main/physics/input_output/SerializedRig.cpp 2012-05-10 07:15:10 UTC (rev 2535) +++ trunk/source/main/physics/input_output/SerializedRig.cpp 2012-05-10 08:05:57 UTC (rev 2536) @@ -150,10 +150,10 @@ // commands contain complex data structures, do not memset them ... for(int i=0;i<MAX_COMMANDS+1;i++) { - this->commandkey[i].commandValue=-1; + this->commandkey[i].commandValue=0; this->commandkey[i].beams.clear(); this->commandkey[i].rotators.clear(); - this->commandkey[i].description = String(); + this->commandkey[i].description=""; } memset(this->rotators, 0, sizeof(rotator_t) * MAX_ROTATORS); free_rotator = 0; 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