mirror of
				https://github.com/imezx/Warp.git
				synced 2025-11-03 19:49:16 +00:00 
			
		
		
		
	fix: player in queueOut can sometimes be nil?
i'm not sure why this happens but, it does remove the indexing with nil error that spams at one point
This commit is contained in:
		
							parent
							
								
									c12356af4e
								
							
						
					
					
						commit
						95e7fffeff
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -154,6 +154,7 @@ function ServerProcess.start()
 | 
				
			||||||
		for Identifier: string, players in serverQueue do
 | 
							for Identifier: string, players in serverQueue do
 | 
				
			||||||
			for player: Player, data in players do
 | 
								for player: Player, data in players do
 | 
				
			||||||
				if #data > 0 then
 | 
									if #data > 0 then
 | 
				
			||||||
 | 
										if not queueOut[player] then continue end
 | 
				
			||||||
					queueOut[player][Identifier] = table.clone(data)
 | 
										queueOut[player][Identifier] = table.clone(data)
 | 
				
			||||||
					table.clear(data)
 | 
										table.clear(data)
 | 
				
			||||||
				end
 | 
									end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue