Skip to content

Commit

Permalink
Update OpenDreamRuntime/Procs/DMOpcodeHandlers.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit authored Feb 18, 2025
1 parent f59b7f9 commit 80aafd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OpenDreamRuntime/Procs/DMOpcodeHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1434,8 +1434,7 @@ private static DreamValue TypecheckHelper(DreamValue typeValue, DreamValue value
type = typeObject.ObjectDefinition.TreeEntry;
} else if (typeValue.TryGetValueAsAppearance(out _)) {
// /image matches an appearance
if (value.TryGetValueAsDreamObject<DreamObjectImage>(out var imageObject))
{
if (value.TryGetValueAsDreamObject<DreamObjectImage>(out var imageObject)) {
return doCast ? new DreamValue(imageObject) : DreamValue.True;
}

Expand Down

0 comments on commit 80aafd2

Please sign in to comment.