diff options
| -rw-r--r-- | src/game/editor/ed_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp index a3ff8e48..97e9452f 100644 --- a/src/game/editor/ed_editor.cpp +++ b/src/game/editor/ed_editor.cpp @@ -1862,7 +1862,7 @@ static void ExtractName(const char *pFileName, char *pName, int BufferSize) pEnd = pFileName; } - int Length = pEnd > pExtractedName ? min(BufferSize, pEnd-pExtractedName+1) : BufferSize; + int Length = pEnd > pExtractedName ? min(BufferSize, (int)(pEnd-pExtractedName+1)) : BufferSize; str_copy(pName, pExtractedName, Length); } |