(svn r1914) - Fix: [ 1119147 ] Stop startup memory corruption crash using optimized MSVC6. MSVC6 workaround as it's too stupid again for its own good
This commit is contained in:
		
							
								
								
									
										5
									
								
								map.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								map.c
									
									
									
									
									
								
							@@ -25,8 +25,9 @@ void InitMap(uint log_x, uint log_y)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	DEBUG(map, 1)("Allocating map of size %dx%d", log_x, log_y);
 | 
						DEBUG(map, 1)("Allocating map of size %dx%d", log_x, log_y);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	_map_log_x = log_x;
 | 
						// XXX - MSVC6 volatile workaround
 | 
				
			||||||
	_map_log_y = log_y;
 | 
						*(volatile uint*)&_map_log_x = log_x;
 | 
				
			||||||
 | 
						*(volatile uint*)&_map_log_y = log_y;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	map_size = MapSize();
 | 
						map_size = MapSize();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user