summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/order_cmd.c b/order_cmd.c
index 64c7878e0..ae32c4184 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -15,6 +15,7 @@
#include "news.h"
#include "saveload.h"
#include "vehicle_gui.h"
+#include "ai/ai_event.h"
enum {
/* Max orders: 64000 (64 * 1000) */
@@ -393,6 +394,8 @@ int32 CmdInsertOrder(int x, int y, uint32 flags, uint32 p1, uint32 p2)
/* Make sure to rebuild the whole list */
RebuildVehicleLists();
+
+ ai_event(_current_player, ottd_Event_GiveOrder, v->index);
}
return 0;