Parcourir la source

Default Entity SetSpeed via LUA fix

Image il y a 4 ans
Parent
commit
f2c72f60b1
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      EQ2/source/WorldServer/LuaFunctions.cpp

+ 1 - 0
EQ2/source/WorldServer/LuaFunctions.cpp

@@ -1572,6 +1572,7 @@ int EQ2Emu_lua_SetSpeed(lua_State* state) {
 	lua_interface->ResetFunctionStack(state);
 	if (spawn) {
 		spawn->SetSpeed(value);
+		((Entity*)spawn)->SetSpeed(value);
 		if (spawn->IsPlayer()) {
 			Client* client = spawn->GetZone()->GetClientBySpawn(spawn);
 			if (client) {