Skip to content

Commit a8d15b0

Browse files
committed
Fix crash when CCUILib is missing
1 parent 3ff5c00 commit a8d15b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utilities/widgets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { toggleGameSpeed } from './gameSpeed.js';
33
import { recentSaveLoad, quickSave, quickLoad } from './saveHotkeys.js';
44
import { setHealthEnemy, setHealthPlayer } from './healthHotkeys.js';
55

6-
if (nax.ccuilib.QuickRingMenuWidgets) {
6+
if (nax && nax.ccuilib && nax.ccuilib.QuickRingMenuWidgets) {
77
nax.ccuilib.QuickRingMenuWidgets.addWidget({
88
name: 'speedrun_freesp',
99
title: 'Give SP',

0 commit comments

Comments
 (0)