Vice City: Multiplayer

VC:MP Discussion => Support => Bugs and Crashes => Topic started by: habi on Nov 23, 2022, 07:22 AM

Title: [Bug]Streams can be send without any target player
Post by: habi on Nov 23, 2022, 07:22 AM
Description
The Stream class is not throwing error when its function SendStream is called with a null player.

Reproducible
Always

What you were doing when the bug happened
I had a piece of code to send data streams to player and obtain report from them. I restarted server and when the function was called from Server console with FindPlayer function as one of the arguments, nothing happened. Then i understood that no player was connected. So this class is not throwing error.

What you think caused the bug
Stream class not checking inside, if player is not null
Title: Re: [Bug]Streams can be send without any target player
Post by: Sebastian on Nov 25, 2022, 11:01 AM
Doesn't it actually send the data to all players?
I might be mistaken though.