[Commands] Fix #goto not accepting proper heading (#4685)

This commit is contained in:
nytmyr authored and GitHub committed 2025-02-15 11:12:23 -05:00
1 parent e948a6815c
commit da24bf467a
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ void command_goto(Client *c, const Seperator *sep)
Strings::ToFloat(sep->arg[1]),
Strings::ToFloat(sep->arg[2]),
Strings::ToFloat(sep->arg[3]),
sep->arg[4] && Strings::IsFloat(sep->arg[4]) ? Strings::ToFloat(sep->arg[1]) : c->GetHeading()
sep->arg[4] && Strings::IsFloat(sep->arg[4]) ? Strings::ToFloat(sep->arg[4]) : c->GetHeading()
);
c->MovePC(
zone->GetZoneID(),