From 80c1e9f849ca842a53917d52cdb7cdb1dd1d056c Mon Sep 17 00:00:00 2001 From: Alexander <84857900+4z0t@users.noreply.github.com> Date: Fri, 27 Sep 2024 15:09:22 +0300 Subject: [PATCH] Add the command identifier to `GetHighlightCommand` This allows us to interact with the command with other UI functions. --- section/GetHighlightCommand.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/section/GetHighlightCommand.cpp b/section/GetHighlightCommand.cpp index 439a09aa..fb7661ea 100644 --- a/section/GetHighlightCommand.cpp +++ b/section/GetHighlightCommand.cpp @@ -21,6 +21,7 @@ int UIGetHighlightCommand(lua_State *L) { lua_push(L, "x", command->pos.x); lua_push(L, "y", command->pos.y); lua_push(L, "z", command->pos.z); + lua_push(L, "commandId", commandId); auto targetId = command->targetId; if (targetId != 0xF0000000) { char buf[16];