MYST3: Add missing class members initialization

Could cause hotspots to be incorrectly considered as hotspot destinations
This commit is contained in:
Bastien Bouclet 2015-03-20 19:38:17 +01:00
parent 56b2a370bd
commit d6e1d8ae5b
2 changed files with 7 additions and 0 deletions

View File

@ -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(

View File

@ -49,6 +49,8 @@ struct PolarRect {
class HotSpot {
public:
HotSpot();
int16 condition;
Common::Array<PolarRect> rects;
int16 cursor;