null check
This commit is contained in:
parent
35aec8affe
commit
ad1f65aca6
@ -45,9 +45,11 @@
|
||||
+ bug fixes
|
||||
Fix idle animations
|
||||
Fix light cluster mapping for foliage shader
|
||||
Fix foliage placement
|
||||
Fix lights not being deleted
|
||||
- Not sending a "light count" var to light calculations, so the data stays in buffer even though it is not being updated
|
||||
Fix block tree preventing initiating an attack
|
||||
Fix equipping sword on toolbar
|
||||
Fix return to title menu synchronization bug
|
||||
|
||||
+ unreproducible bugs
|
||||
|
||||
@ -875,7 +875,7 @@ Fix SP debug launcher actually entering world
|
||||
Fix virtual scrollable clipping logic
|
||||
Fix ui scaling on abnormal monitors
|
||||
- This is literally just a function of the settings file not being updated for different resolutions
|
||||
|
||||
Fix inventory null pointer check on virtualaudiomanager
|
||||
|
||||
|
||||
|
||||
|
||||
@ -200,10 +200,12 @@ public class ToolbarInventoryPanel {
|
||||
}
|
||||
}
|
||||
Item itemData = Globals.gameConfigCurrent.getItemMap().getItem(ItemUtils.getType(Globals.draggedItem));
|
||||
if(itemData.getItemAudio() != null && itemData.getItemAudio().getUIReleaseAudio() != null){
|
||||
Globals.virtualAudioSourceManager.createVirtualAudioSource(itemData.getItemAudio().getUIReleaseAudio(), VirtualAudioSourceType.UI, false);
|
||||
} else {
|
||||
Globals.virtualAudioSourceManager.createVirtualAudioSource(AssetDataStrings.UI_SFX_ITEM_RELEASE, VirtualAudioSourceType.UI, false);
|
||||
if(Globals.virtualAudioSourceManager != null){
|
||||
if(itemData.getItemAudio() != null && itemData.getItemAudio().getUIReleaseAudio() != null){
|
||||
Globals.virtualAudioSourceManager.createVirtualAudioSource(itemData.getItemAudio().getUIReleaseAudio(), VirtualAudioSourceType.UI, false);
|
||||
} else {
|
||||
Globals.virtualAudioSourceManager.createVirtualAudioSource(AssetDataStrings.UI_SFX_ITEM_RELEASE, VirtualAudioSourceType.UI, false);
|
||||
}
|
||||
}
|
||||
//update ui
|
||||
Globals.dragSourceInventory = null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user