Skip to content

Commit 704567b

Browse files
author
rt
committed
update IGlobalAI
1 parent a9af7b3 commit 704567b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AI/Wrappers/LegacyCpp/IGlobalAI.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ class IGlobalAI
9898
virtual void RecvChatMessage(const char* message, int player) { GotChatMsg(message, player); }
9999

100100
/// called when a Lua widget or unsynced gadget sends a message to this AI
101-
virtual void RecvLuaMessage(const char* inData, const char** outData) { *outData = inData; }
101+
/// do not use outData, it is always NULL for interface-technical reasons
102+
virtual void RecvLuaMessage(const char* inData, const char** outData) { /* *outData = inData; */ }
102103

103104

104105
/// called when one of your units are damaged

0 commit comments

Comments
 (0)