fixed stack corruption in sound code

This commit is contained in:
jeefo 2016-03-12 19:56:09 +03:00
commit a27d39a394
13 changed files with 155 additions and 143 deletions

View file

@ -704,10 +704,10 @@ public:
//
// Function: BuildVectors
//
// Builds a 3D referential from a view angle, that is to say, the relative "forward", "right" and "upward" direction
// that a player would have if he were facing this view angle. World angles are stored in Vector structs too, the
// "x" component corresponding to the X angle (horizontal angle), and the "y" component corresponding to the Y angle
// (vertical angle).
// Builds a 3D referential from a view angle, that is to say, the relative "forward", "right" and "upward" direction
// that a player would have if he were facing this view angle. World angles are stored in Vector structs too, the
// "x" component corresponding to the X angle (horizontal angle), and the "y" component corresponding to the Y angle
// (vertical angle).
//
// Parameters:
// forward - Forward referential vector.
@ -3965,8 +3965,7 @@ public:
//
static FORCEINLINE T *GetObject (void)
{
static T reference;
return &reference;
return &GetReference ();
}
//