mirror of
				https://github.com/imezx/Warp.git
				synced 2025-11-03 19:49:16 +00:00 
			
		
		
		
	Merge pull request #3 from kriebelmuis/master
fix: player in queueOut array can sometimes be nil
This commit is contained in:
		
						commit
						51eda393bf
					
				
					 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