GetAdvancedValue now uses the correct Math RND reference, which means anything that used the randInt or randFloat features of this function, such as creating a Sprite from a Config object, or Bitmap Text sizing, will no longer throw an error about a null object reference. Fix #4369

This commit is contained in:
Richard Davey 2019-02-24 22:56:29 +00:00
parent 06f966e3b0
commit 84c24862cf
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@
### Bug Fixes
* The parent bounds are reset when exiting fullscreen mode in the Scale Manager. This fixes an issue when leaving fullscreen mode by pressing ESC (instead of programmatically) would leave the canvas in the full screen size. Fix #4357 (thanks @khutchins and @HeyStevenXu)
* `GetAdvancedValue` now uses the correct Math RND reference, which means anything that used the `randInt` or `randFloat` features of this function, such as creating a Sprite from a Config object, or Bitmap Text sizing, will no longer throw an error about a null object reference. Fix #4369 (thanks @sanadov)
### Examples, Documentation and TypeScript

View file

@ -4,7 +4,7 @@
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var MATH = require('../../math/const');
var MATH = require('../../math');
var GetValue = require('./GetValue');
/**