mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Made incorrect nif get error message more informative.
This commit is contained in:
parent
c1315ed90c
commit
9909c4abad
@ -5,6 +5,8 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdexcept>
|
||||
#include <typeinfo>
|
||||
#include <string>
|
||||
|
||||
#include <OgreDataStream.h>
|
||||
#include <OgreVector2.h>
|
||||
@ -86,7 +88,7 @@ public:
|
||||
|
||||
//Templated functions to handle reads
|
||||
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
|
||||
template <typename T>
|
||||
|
Loading…
x
Reference in New Issue
Block a user