diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-08-17 22:40:33 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-08-17 22:40:33 +0800 |
commit | 03a307b58ddc6244d3fad8d77d7f0bac0a24e05d (patch) | |
tree | c578005d3c66ccc53ed454e63403c30f72230924 /include/smbmfont.hpp | |
parent | bfe4f5ac512493bd9a359a06875288fbfaea6ff8 (diff) | |
download | bullet-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/smbmfont.hpp')
-rw-r--r-- | include/smbmfont.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/smbmfont.hpp b/include/smbmfont.hpp index 6a0f1c1..44f2e2f 100644 --- a/include/smbmfont.hpp +++ b/include/smbmfont.hpp @@ -27,9 +27,9 @@ private: int pdb[256],pda[256],b; DWORD color; std::map<std::string,SMTEX> xm; - void parseMeta(char* meta,DWORD size); + void parseMeta(const char* meta,DWORD size); public: - bool loadAnmFromMemory(char* ptr,DWORD size); + bool loadAnmFromMemory(const char* ptr,DWORD size); void close(); void render(float x,float y,float z,int align,float *rw,const char* text); void printf(float x,float y,float z,int align,float *rw,const char* format,...); |