aboutsummaryrefslogtreecommitdiff
path: root/include/smanim.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-08-17 22:40:33 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-08-17 22:40:33 +0800
commit03a307b58ddc6244d3fad8d77d7f0bac0a24e05d (patch)
treec578005d3c66ccc53ed454e63403c30f72230924 /include/smanim.hpp
parentbfe4f5ac512493bd9a359a06875288fbfaea6ff8 (diff)
downloadbullet-lab-remix-03a307b58ddc6244d3fad8d77d7f0bac0a24e05d.tar.xz
Fix crashes in smAnmFile.
Do not crash if a non-exist file is requested in a DTP file. Fix several stupid typos. Fix missing smEntity3D constructor. Fix line spacing in smTTFont.
Diffstat (limited to 'include/smanim.hpp')
-rw-r--r--include/smanim.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/smanim.hpp b/include/smanim.hpp
index 8cc4eef..c203961 100644
--- a/include/smanim.hpp
+++ b/include/smanim.hpp
@@ -35,12 +35,12 @@ class smAnmFile
private:
static SMELT *sm;
smDtpFileR anm;
- void parseMeta(char* meta,DWORD size);
+ void parseMeta(const char* meta,DWORD size);
std::map<std::string,smTexInfo> tm;
std::map<std::string,smAnmInfo> am;
std::map<std::string,SMTEX> xm;
public:
- bool loadAnmFromMemory(char* ptr,DWORD size);
+ bool loadAnmFromMemory(const char* ptr,DWORD size);
void close();
smTexInfo* getTextureInfo(const char* name);
smAnmInfo* getAnimationInfo(const char* name);