]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/eclass_def.cpp
added patch support for texture-painting
[xonotic/netradiant.git] / radiant / eclass_def.cpp
index 2e0fc13b33413f926237f86147db584b944aba88..01341ed527dde20851289e36024e7b108a6be507 100644 (file)
@@ -168,8 +168,8 @@ void setSpecialLoad(EntityClass *e, const char* pWhat, CopiedString& p)
   // Hydra: removed some amazingly bad cstring usage, whoever wrote that
   // needs to be taken out and shot.
 
-  char *pText = 0;
-  char *where = 0;
+  const char *pText = 0;
+  const char *where = 0;
 
   where = strstr(e->comments(),pWhat);
   if (!where)
@@ -182,7 +182,7 @@ void setSpecialLoad(EntityClass *e, const char* pWhat, CopiedString& p)
   where = strchr(pText,'\"');
   if (where)
   {
-    p = CopiedString(pText, where);
+    p = StringRange(pText, where);
   }
   else
   {