mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 02:26:41 +00:00 
			
		
		
		
	Fix crash with gcc/linux.
This commit is contained in:
		
							parent
							
								
									889749a493
								
							
						
					
					
						commit
						33a8cd245a
					
				
					 1 changed files with 2 additions and 7 deletions
				
			
		| 
						 | 
					@ -331,15 +331,10 @@ void CSMDoc::WriteCellCollectionStage::perform (int stage, Messages& messages)
 | 
				
			||||||
                        moved.mRefNum = ref.get().mRefNum;
 | 
					                        moved.mRefNum = ref.get().mRefNum;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        // Need to fill mTarget with the ref's new position.
 | 
					                        // Need to fill mTarget with the ref's new position.
 | 
				
			||||||
                        //
 | 
					                        std::istringstream istream (stream.str().c_str());
 | 
				
			||||||
                        // For this to work the view tht modified this ref needed to have the
 | 
					 | 
				
			||||||
                        // ref's mCell updted properly.
 | 
					 | 
				
			||||||
                        //
 | 
					 | 
				
			||||||
                        // For now use the temporary solution calculated above
 | 
					 | 
				
			||||||
                        std::istringstream stream (stream.str().c_str());
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        char ignore;
 | 
					                        char ignore;
 | 
				
			||||||
                        stream >> ignore >> moved.mTarget[0] >> moved.mTarget[1];
 | 
					                        istream >> ignore >> moved.mTarget[0] >> moved.mTarget[1];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        ref.get().mRefNum.save (mState.getWriter(), false, "MVRF");
 | 
					                        ref.get().mRefNum.save (mState.getWriter(), false, "MVRF");
 | 
				
			||||||
                        mState.getWriter().writeHNT ("CNDT", moved.mTarget, 8);
 | 
					                        mState.getWriter().writeHNT ("CNDT", moved.mTarget, 8);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue