DarkstarProject / darkstar

DEPRECATED - FFXI Server Emulator - See Project Topaz
https://github.com/project-topaz/topaz
GNU General Public License v3.0
455 stars 549 forks source link

Fix compilation error on mac, missing import. #6387

Closed mrhappyasthma closed 4 years ago

mrhappyasthma commented 4 years ago

Undeclared definition of a template type would not build for me on Mac.

Error:

In file included from src/map/battlefield.cpp:24:
src/map/battlefield.h:176:35: error: implicit instantiation of undefined
      template 'std::__1::vector<BattlefieldMob_t,
      std::__1::allocator<BattlefieldMob_t> >'
    std::vector<BattlefieldMob_t> m_RequiredEnemyList;
                                  ^

This is remedied by #include <vector> explicitly.