Merge branch 'fix-video-recorder-crash' into 'master'

Fix random video recorder crash

Closes #685

See merge request KartKrew/Kart!2170
This commit is contained in:
AJ Martinez 2024-03-27 11:40:29 +00:00
commit ab6c770657

View file

@ -1,6 +1,6 @@
// RING RACERS
//-----------------------------------------------------------------------------
// Copyright (C) 2023 by James Robert Roman
// Copyright (C) 2023-2024 by James Robert Roman
//
// This program is free software distributed under the
// terms of the GNU General Public License, version 2.
@ -36,7 +36,8 @@ public:
int height() const { return height_; }
private:
int width_, height_;
int width_ = 0;
int height_ = 0;
std::vector<uint8_t> vec_;
};