mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	fixed an out-of-bound crash when doing finishshape on an empty shape
This commit is contained in:
		| @@ -242,6 +242,7 @@ void geometry_information::finishshape() { | |||||||
|   if(allminus || allplus) last->flags |= POLY_CCONVEX; |   if(allminus || allplus) last->flags |= POLY_CCONVEX; | ||||||
|  |  | ||||||
|   allplus = true, allminus = true; |   allplus = true, allminus = true; | ||||||
|  |   if(last->s == isize(hpc)) { last = NULL; return; } | ||||||
|   ld cx = hpc[last->s][0], cy = hpc[last->s][1]; |   ld cx = hpc[last->s][0], cy = hpc[last->s][1]; | ||||||
|  |  | ||||||
|   for(int i=last->s; i<last->e-1; i++) { |   for(int i=last->s; i<last->e-1; i++) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue