Changeset - r1410:e75aaa75af76
[Not reviewed]
master
0 1 0
Darkvater - 19 years ago 2005-02-26 13:57:40
darkvater@openttd.org
(svn r1914) - Fix: [ 1119147 ] Stop startup memory corruption crash using optimized MSVC6. MSVC6 workaround as it's too stupid again for its own good
1 file changed with 3 insertions and 2 deletions:
map.c
3
2
0 comments (0 inline, 0 general)
map.c
Show inline comments
 
@@ -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);
 

	
 
	_map_log_x = log_x;
 
	_map_log_y = log_y;
 
	// XXX - MSVC6 volatile workaround
 
	*(volatile uint*)&_map_log_x = log_x;
 
	*(volatile uint*)&_map_log_y = log_y;
 

	
 
	map_size = MapSize();
 

	
0 comments (0 inline, 0 general)