mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
MYST3: Add missing class members initialization
Could cause hotspots to be incorrectly considered as hotspot destinations
This commit is contained in:
parent
56b2a370bd
commit
d6e1d8ae5b
@ -27,6 +27,11 @@
|
||||
|
||||
namespace Myst3 {
|
||||
|
||||
HotSpot::HotSpot() :
|
||||
condition(0),
|
||||
cursor(0) {
|
||||
}
|
||||
|
||||
int32 HotSpot::isPointInRectsCube(float pitch, float heading) {
|
||||
for (uint j = 0; j < rects.size(); j++) {
|
||||
Common::Rect rect = Common::Rect(
|
||||
|
@ -49,6 +49,8 @@ struct PolarRect {
|
||||
|
||||
class HotSpot {
|
||||
public:
|
||||
HotSpot();
|
||||
|
||||
int16 condition;
|
||||
Common::Array<PolarRect> rects;
|
||||
int16 cursor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user