Fixed missing includes

This commit is contained in:
Axel 2021-10-29 17:17:59 +02:00 committed by bernat
parent 33c044d493
commit f93fe0f9a3
2 changed files with 8 additions and 4 deletions

View File

@ -265,9 +265,9 @@ UTexture2D* ACarlaGameModeBase::CreateUETexture(const carla::rpc::TextureColor&
{
FlushRenderingCommands();
TArray<FColor> Colors;
for (int y = 0; y < Texture.GetHeight(); y++)
for (uint32_t y = 0; y < Texture.GetHeight(); y++)
{
for (int x = 0; x < Texture.GetWidth(); x++)
for (uint32_t x = 0; x < Texture.GetWidth(); x++)
{
auto& Color = Texture.At(x,y);
Colors.Add(FColor(Color.r, Color.g, Color.b, Color.a));
@ -288,9 +288,9 @@ UTexture2D* ACarlaGameModeBase::CreateUETexture(const carla::rpc::TextureFloatCo
{
FlushRenderingCommands();
TArray<FFloat16Color> Colors;
for (int y = 0; y < Texture.GetHeight(); y++)
for (uint32_t y = 0; y < Texture.GetHeight(); y++)
{
for (int x = 0; x < Texture.GetWidth(); x++)
for (uint32_t x = 0; x < Texture.GetWidth(); x++)
{
auto& Color = Texture.At(x,y);
Colors.Add(FLinearColor(Color.r, Color.g, Color.b, Color.a));

View File

@ -10,6 +10,10 @@
#include "Carla/Traffic/TrafficSignBase.h"
#include "Carla/Vehicle/CarlaWheeledVehicle.h"
#include <compiler/disable-ue4-macros.h>
#include <carla/rpc/ObjectLabel.h>
#include <compiler/enable-ue4-macros.h>
#include "Components/CapsuleComponent.h"
#include "GameFramework/Character.h"