diff --git a/ag.cc b/ag.cc index 87cd4ad..73113c9 100644 --- a/ag.cc +++ b/ag.cc @@ -7,6 +7,8 @@ #include #include #include +#include +#include using namespace std; namespace ag @@ -99,13 +101,14 @@ namespace ag { string modelname = lua_tostring(L, -1); size_t pos = modelname.find_first_not_of(FILENAME_SAFE_CHARS); - if (pos != string::npos) + if (pos == string::npos) { string path = locateResource(modelname); if (path != "") { WFObj * obj = new WFObj(); obj->load(path); + GLuint dl = obj->render(); } } }