aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 68bb5628887..61968fae0c4 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -20308,7 +20308,10 @@ void Player::EnterVehicle(Vehicle *vehicle)
data << uint32(0x00000000);
data << uint32(0x00000101);
- for(uint32 i = 0; i < 10; ++i)
+ for(uint32 i = 0; i < CREATURE_MAX_SPELLS; ++i)
+ data << uint16(vehicle->m_spells[i]) << uint8(0) << uint8(i+8);
+
+ for(uint32 i = CREATURE_MAX_SPELLS; i < 10; ++i)
data << uint16(0) << uint8(0) << uint8(i+8);
data << uint8(0);