Skip to content

Commit

Permalink
get_step(thing,null) == get_step(thing,0) (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle authored Feb 4, 2024
1 parent 011bace commit 29201f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDreamRuntime/Procs/DMOpcodeHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,7 @@ public static ProcStatus GetStep(DMProcState state) {
return ProcStatus.Continue;
}

var dir = d.MustGetValueAsInteger();
var dir = d.IsNull ? 0 : d.MustGetValueAsInteger();

state.Push(new(DreamProcNativeHelpers.GetStep(state.Proc.AtomManager, state.Proc.DreamMapManager, loc, (AtomDirection)dir)));
return ProcStatus.Continue;
Expand Down

0 comments on commit 29201f0

Please sign in to comment.