Add missing includes and type cast

pull/691/head
Herman Yanush 2 months ago
parent 49be5b6405
commit a877ccd5d2

@ -104,7 +104,7 @@ struct ScriptFunctionPointer : public ScriptIdentity
constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr((void*)(addr)) {} constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr((void*)(addr)) {}
#else #else
template<typename R, typename... Types> template<typename R, typename... Types>
constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr(addr) {} constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr((void*)(addr)) {}
#endif #endif
}; };

@ -1,6 +1,7 @@
#ifndef GAME_STATE_CHARACTERMANAGER_H #ifndef GAME_STATE_CHARACTERMANAGER_H
#define GAME_STATE_CHARACTERMANAGER_H #define GAME_STATE_CHARACTERMANAGER_H
#include <list>
#include <boost/filesystem/path.hpp> #include <boost/filesystem/path.hpp>
#include "character.hpp" #include "character.hpp"

@ -6,6 +6,7 @@
#include <boost/filesystem/fstream.hpp> #include <boost/filesystem/fstream.hpp>
#include <components/debug/debuglog.hpp> #include <components/debug/debuglog.hpp>
#include <memory>
namespace osgMyGUI namespace osgMyGUI
{ {

Loading…
Cancel
Save