mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-14 11:09:17 +01:00
a bit
start work on vending machines, fix some playlist specific things, fixed a bug with <s5 playlist looting,
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "Object.h"
|
||||
#include "reboot.h"
|
||||
#include "GameplayStatics.h"
|
||||
#include "FortPlaylist.h"
|
||||
|
||||
struct Event
|
||||
{
|
||||
@@ -256,12 +257,12 @@ static inline std::vector<Event> Events =
|
||||
)
|
||||
};
|
||||
|
||||
static inline UObject* GetEventPlaylist()
|
||||
static inline UFortPlaylist* GetEventPlaylist()
|
||||
{
|
||||
for (auto& CurrentEvent : Events)
|
||||
{
|
||||
if (CurrentEvent.Version == Fortnite_Version)
|
||||
return FindObject(CurrentEvent.PlaylistName, nullptr, ANY_PACKAGE);
|
||||
return FindObject<UFortPlaylist>(CurrentEvent.PlaylistName, nullptr, ANY_PACKAGE);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user