Skip to content

Commit

Permalink
Fix /image objects sharing appearances (#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit authored Feb 20, 2024
1 parent f7ea4c8 commit db8d929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDreamRuntime/Objects/Types/DreamObjectImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public override void Initialize(DreamProcArguments args) {
DreamValue icon = args.GetArgument(0);
if (icon.IsNull || !AtomManager.TryCreateAppearanceFrom(icon, out Appearance)) {
// Use a default appearance, but log a warning about it if icon wasn't null
Appearance = AtomManager.GetAppearanceFromDefinition(ObjectDefinition);
Appearance = new(AtomManager.GetAppearanceFromDefinition(ObjectDefinition));
if (!icon.IsNull)
Logger.GetSawmill("opendream.image")
.Warning($"Attempted to create an /image from {icon}. This is invalid and a default image was created instead.");
Expand Down

0 comments on commit db8d929

Please sign in to comment.