diff options
Diffstat (limited to 'StarsEx/Skin.cpp')
-rw-r--r-- | StarsEx/Skin.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/StarsEx/Skin.cpp b/StarsEx/Skin.cpp index 62363c5..b5bd8ab 100644 --- a/StarsEx/Skin.cpp +++ b/StarsEx/Skin.cpp @@ -27,8 +27,6 @@ Skin::Skin(const char* n) else { ZeroMemory(name, NAMELEN); } - - ZeroMemory(path, 256); } // +--------------------------------------------------------------------+ @@ -50,16 +48,9 @@ Skin::SetName(const char* n) } void -Skin::SetPath(const char* n) +Skin::SetSource(int src) { - if (n && *n) { - strncpy_s(path, n, 256); - path[255] = 0; - } - - else { - ZeroMemory(path, 256); - } + source = src; } // +--------------------------------------------------------------------+ |