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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user