Skip to content

Commit

Permalink
incorrect nullability
Browse files Browse the repository at this point in the history
  • Loading branch information
distributivgesetz committed Jan 1, 2024
1 parent 71e03e9 commit 60f3190
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DMCompiler/DM/DMObject.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using OpenDreamShared.Dream;
using DMCompiler.Bytecode;
using OpenDreamShared.Compiler;
using OpenDreamShared.Dream;
using OpenDreamShared.Json;
using System;
using System.Collections.Generic;
using DMCompiler.Bytecode;
using OpenDreamShared.Compiler;

namespace DMCompiler.DM {
/// <remarks>
Expand Down Expand Up @@ -119,7 +119,7 @@ public DMVariable CreateGlobalVariable(DreamPath? type, string name, bool isCons
return Parent?.GetGlobalVariableId(name);
}

public DMVariable GetGlobalVariable(string name) {
public DMVariable? GetGlobalVariable(string name) {
int? id = GetGlobalVariableId(name);

return (id == null) ? null : DMObjectTree.Globals[id.Value];
Expand Down

0 comments on commit 60f3190

Please sign in to comment.