mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-11 18:08:05 +00:00
feat: Add component ID to root component object (#1893)
This commit is contained in:
@@ -16,12 +16,12 @@
|
||||
|
||||
std::unordered_map<int32_t, float> RenderComponent::m_DurationCache{};
|
||||
|
||||
RenderComponent::RenderComponent(Entity* const parentEntity, const int32_t componentId) : Component{ parentEntity } {
|
||||
RenderComponent::RenderComponent(Entity* const parentEntity, const int32_t componentID) : Component{ parentEntity, componentID } {
|
||||
m_LastAnimationName = "";
|
||||
if (componentId == -1) return;
|
||||
if (componentID == -1) return;
|
||||
|
||||
auto query = CDClientDatabase::CreatePreppedStmt("SELECT * FROM RenderComponent WHERE id = ?;");
|
||||
query.bind(1, componentId);
|
||||
query.bind(1, componentID);
|
||||
auto result = query.execQuery();
|
||||
|
||||
if (!result.eof()) {
|
||||
|
Reference in New Issue
Block a user