remove wanring

This commit is contained in:
aozhiwei 2019-07-13 14:17:36 +08:00
parent 0347211284
commit ab0afb3fa5
5 changed files with 12 additions and 3 deletions

View File

@ -2,6 +2,11 @@
#include "aicomponent.h" #include "aicomponent.h"
AIComponent::~AIComponent()
{
}
void AIComponent::Update(int delta_time) void AIComponent::Update(int delta_time)
{ {

View File

@ -6,5 +6,6 @@ class AIComponent
public: public:
Entity* owner = nullptr; Entity* owner = nullptr;
virtual ~AIComponent();
virtual void Update(int delta_time); virtual void Update(int delta_time);
}; };

View File

@ -7,6 +7,10 @@
#include "room.h" #include "room.h"
#include "metamgr.h" #include "metamgr.h"
AndroidAI::~AndroidAI()
{
}
void AndroidAI::Update(int delta_time) void AndroidAI::Update(int delta_time)
{ {
Human* hum = (Human*)owner; Human* hum = (Human*)owner;

View File

@ -17,6 +17,7 @@ class AndroidAI : public AIComponent
int state_elapsed_time = 0; int state_elapsed_time = 0;
Human* last_hiter = nullptr; Human* last_hiter = nullptr;
virtual ~AndroidAI() override;
virtual void Update(int delta_time) override; virtual void Update(int delta_time) override;
private: private:

View File

@ -148,12 +148,10 @@ namespace MetaData
} }
} }
assert(itemids.size() == nums.size()); assert(itemids.size() == nums.size());
#if 1
std::vector<int> item_lvs; std::vector<int> item_lvs;
for (auto& itr : itemids) { for (size_t ii = 0; ii < itemids.size(); ++ii) {
item_lvs.push_back(1); item_lvs.push_back(1);
} }
#endif
if (this->i->type() == 1) { if (this->i->type() == 1) {
auto item_tuple = std::make_tuple( auto item_tuple = std::make_tuple(
itemids, itemids,