forked from mirror/openmw-tes3mp
Made incorrect nif get error message more informative.
This commit is contained in:
parent
c1315ed90c
commit
9909c4abad
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <typeinfo>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include <OgreDataStream.h>
|
#include <OgreDataStream.h>
|
||||||
#include <OgreVector2.h>
|
#include <OgreVector2.h>
|
||||||
|
@ -86,7 +88,7 @@ public:
|
||||||
|
|
||||||
//Templated functions to handle reads
|
//Templated functions to handle reads
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T get(){throw std::runtime_error("Can not get this type of data from a NIF File!");}
|
T get(){throw std::runtime_error("Can not read a <"+std::string(typeid(T).name())+"> from a NIF File! The get() function was called with the wrong template!");}
|
||||||
|
|
||||||
///Return a vector of whatever object is needed
|
///Return a vector of whatever object is needed
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
Loading…
Reference in a new issue