@urso/core 0.7.54 → 0.7.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.7.54",
3
+ "version": "0.7.55",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -49,4 +49,4 @@
49
49
  "webpack-cli": "^4.2.0",
50
50
  "webpack-dev-server": "^3.11.0"
51
51
  }
52
- }
52
+ }
@@ -115,7 +115,10 @@ class SoundSprite {
115
115
 
116
116
  setAllVolume(volume) {
117
117
  this._totalVolume = volume;
118
- this._player._volume = volume;
118
+
119
+ if (this._player) {
120
+ this._player._volume = volume;
121
+ }
119
122
 
120
123
  if (this.canPlayCheck()) {
121
124
  this._updateVolume();