mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	in be_solid check that c1 is not null (not sure how it could happen)
This commit is contained in:
		| @@ -568,8 +568,10 @@ void be_solid(tcell *c) { | |||||||
|     throw rulegen_failure("set solid but no dist"); |     throw rulegen_failure("set solid but no dist"); | ||||||
|     } |     } | ||||||
|   c->is_solid = true; |   c->is_solid = true; | ||||||
|   if(c->dist > 0 && !(flags & w_near_solid)) |   if(c->dist > 0 && !(flags & w_near_solid)) { | ||||||
|     be_solid(c->move(c->any_nearer)); |     tcell *c1 = c->move(c->any_nearer); | ||||||
|  |     if(c1) be_solid(c1); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
| EX void look_for_shortcuts(tcell *c, shortcut& sh) { | EX void look_for_shortcuts(tcell *c, shortcut& sh) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue