mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
Merge pull request #47571 from lucicam/master
Fix crash caused by null parameter passed to CameraServer.add_feed()
This commit is contained in:
commit
4a65e69296
@ -99,6 +99,8 @@ Ref<CameraFeed> CameraServer::get_feed_by_id(int p_id) {
|
||||
};
|
||||
|
||||
void CameraServer::add_feed(const Ref<CameraFeed> &p_feed) {
|
||||
ERR_FAIL_COND(p_feed.is_null());
|
||||
|
||||
// add our feed
|
||||
feeds.push_back(p_feed);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user