Skip to content

Commit

Permalink
Catch nil in broodwar infobox map (#3465)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpalpha authored Nov 2, 2023
1 parent 707d8ab commit 45ec00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/infobox/wikis/starcraft/infobox_map_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ end
function CustomMap:addToLpdb(lpdbData, args)
lpdbData.name = CustomMap:getNameDisplay(args)
lpdbData.extradata = {
creator = mw.ext.TeamLiquidIntegration.resolve_redirect(args.creator),
creator = args.creator and mw.ext.TeamLiquidIntegration.resolve_redirect(args.creator) or nil,
spawns = args.players,
height = args.height,
width = args.width,
Expand Down

0 comments on commit 45ec00d

Please sign in to comment.