1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-21 14:53:02 +01:00

Get the plugin branch building again

This commit is contained in:
Ted John
2019-07-23 23:21:42 +01:00
parent e8468e71bb
commit 5bd58118b5
15 changed files with 118 additions and 111 deletions

View File

@@ -12,11 +12,10 @@
#include "../common.h"
#include "../ride/Ride.h"
#include "../world/Map.h"
#include "Duktape.hpp"
#include "ScThing.hpp"
#include "ScTile.hpp"
#include <dukglue/dukglue.h>
namespace OpenRCT2::Scripting
{
class ScMap
@@ -62,7 +61,7 @@ namespace OpenRCT2::Scripting
if (id >= 0 && id < MAX_SPRITES)
{
auto sprite = get_sprite(id);
if (sprite != nullptr && sprite->unknown.sprite_identifier != SPRITE_IDENTIFIER_NULL)
if (sprite != nullptr && sprite->generic.sprite_identifier != SPRITE_IDENTIFIER_NULL)
{
return std::make_shared<ScThing>(sprite);
}